Merge pull request #21 from camelChief/20-allow-numbers-in-bible-version-code

20 - Modified passage reference regexp to accept digits in the Bible …
This commit is contained in:
Caleb Campbell
2026-04-03 13:14:26 +11:00
committed by GitHub

View File

@@ -61,7 +61,7 @@ export default class PassageReference
.map((b) => `${b.name}|${b.aliases.join('|')}`)
.join('|');
regExpString +=
') ?(\\d{1,3}(?::\\d{1,3})?(?: ?\\- ?\\d{1,3}(?::\\d{1,3})?)?)((?: ?\\+[a-z]+(?::[a-z]+)?){0,2})$';
') ?(\\d{1,3}(?::\\d{1,3})?(?: ?\\- ?\\d{1,3}(?::\\d{1,3})?)?)((?: ?\\+\\w+(?::[a-z]+)?){0,2})$';
return new RegExp(regExpString, 'i');
}