You can create a verse ref whose ToString() is LUK 1:1, by setting VerseRef.Verse but new VerseRef("LUK 1:1,") throws an exception. VerseRef LUK1:1,'s AllVerses() includes LUK 1: which is not valid. It seems to me that either setting Verse to LUK 1:1, should throw an exception or LUK 1:1, should be understood as synonymous with LUK 1:1 not LUK 1:1, LUK 1:. What's the intended behavior? Happy to put in a PR to fix this if it'd be helpful.
I discovered this issue while investigating sillsdev/serval#796.
You can create a verse ref whose
ToString()isLUK 1:1,by settingVerseRef.Versebutnew VerseRef("LUK 1:1,")throws an exception.VerseRef LUK1:1,'sAllVerses()includesLUK 1:which is not valid. It seems to me that either settingVersetoLUK 1:1,should throw an exception orLUK 1:1,should be understood as synonymous withLUK 1:1notLUK 1:1, LUK 1:. What's the intended behavior? Happy to put in a PR to fix this if it'd be helpful.I discovered this issue while investigating sillsdev/serval#796.