parse_optional_range() no longer fails on start == 1

It also is tested, more robust, and allows whitespace.
Merge pull request #228 from dlowe-net/fix-editor-deletion

parse_optional_range() no longer fails on start == 1