Skip to content

When getting the references for a string containing multiple references separated by commas, if the reference has a prefix, the prefix could be mistaken for a chapter/verse. #135

@avendesora

Description

@avendesora

For example, the string:

"1 Corinthians 1:1, 2 Corinthians 1:1"

Should return the following two references when getting the references:

[
    NormalizedReference(
        book=<Book.CORINTHIANS_1: 46>,
        start_chapter=1,
        start_verse=1,
        end_chapter=1,
        end_verse=1,
        end_book=None
    ),
    NormalizedReference(
        book=<Book.CORINTHIANS_2: 47>,
        start_chapter=1,
        start_verse=1,
        end_chapter=1,
        end_verse=1,
        end_book=None
    )
]

However, the "2" in 2 Corinthians is interpreted as a verse rather than part of the book title, and the following references are returned:

[
    NormalizedReference(
        book=<Book.CORINTHIANS_1: 46>,
        start_chapter=1,
        start_verse=1,
        end_chapter=1,
        end_verse=1,
        end_book=None
    ),
    NormalizedReference(
        book=<Book.CORINTHIANS_1: 46>,
        start_chapter=1,
        start_verse=2,
        end_chapter=1,
        end_verse=2,
        end_book=None
    )
]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions