I've found that on my site, Scripture Filter doesn't interpret a range over multiple verses correctly. For example, halfway down the page of http://brisbanemarthoma.org/lectionary/march, Scripture Filter creates a link for Hebrews 5:12-6:20 to Hebrews 5:12-6 (it doesn't pick up the second colon).

I've run the verse_regex through a online testing tool, and it seems to pick up the verses correctly. It just doesn't do so when running the module.

Comments

thesuperav’s picture

jamesoakley’s picture

Title: Multiple verse range » Multiple chapter ranges ignore second colon
Version: 6.x-1.x-dev » 7.x-1.x-dev

I have reproduced this. Changing version to 7.x, and changed the title to clarify the issue

jamesoakley’s picture

Status: Active » Needs review
StatusFileSize
new576 bytes
new559 bytes

Is it as simple as this? If someone could check it this can be committed faster.

jamesoakley’s picture

StatusFileSize
new571 bytes
new588 bytes

In the end I decided that the patches in #3 created too many false positives. Colon characters aren't punctuation in the same way that a comma or an ampersand are; they specifically separate chapters from verses. So a better approach is to amend the existing code and say that whenever you could have a verse number, it could also be "chapter:verse".

Committed the attached two patches.

jamesoakley’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

vrajak@gmail.com’s picture

Since no one commented after the patch, I just wanted to say the D6 patch worked for me, and now my site happily reads multiple verse ranges. Thanks!

jamesoakley’s picture

Thanks Vraja - always nice when people stop by to say thanks!