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
60 stars 12 forks source link

Compound reference fails for Job #77

Closed tayknight closed 1 year ago

tayknight commented 1 year ago

These work as expected bible.get_references('Ezra 1:1-Ezra 1:3') bible.get_references('Job 1:1-3')

This doesn't bible.get_references('Job 1:1-Job 1:3')

tayknight commented 1 year ago

Looks like it is failing after it matches Job and the regex gets to John. John's regex is JOHN_REGULAR_EXPRESSION = "(John" r"|Joh\.*" r"|Jhn\.*" r"|Jo\.*" r"|Jn\.*)" is matching on Jo\.*

avendesora commented 1 year ago

Thanks for catching that. I'll work on getting that fixed ASAP.

avendesora commented 1 year ago

This should be fixed in pythonbible version 0.8