avendesora / pythonbible

A python library for validating, parsing, normalizing scripture references and retrieving scripture texts (for open source and public domain versions)
https://docs.python.bible
MIT License
57 stars 11 forks source link

Problem in compound verses with prefix #78

Closed tayknight closed 1 year ago

tayknight commented 1 year ago

These works

bible.get_references('Ezra 1:1-Ezra 2:1')
bible.get_references('1 Kings 1:1-3')

But these return wrong references or fail to return references

bible.get_references("1 Kings 1:1-Kings 1:10")
bible.get_references("1 Chronicles 1:5-1 Chronicles 1:7")

My hunch is the 2nd "1" in "1 Chronicles" is getting picked up like I had tried to find "1 Chronicles 1:5-1"

avendesora commented 1 year ago

This should be fixed in pythonbible version 0.8