20 - Modified passage reference regexp to accept digits in the Bible version code option.

This commit is contained in:
Caleb Campbell
2026-04-03 13:13:25 +11:00
parent c8aa5c707b
commit 9ae66c9627

View File

@@ -61,7 +61,7 @@ export default class PassageReference
.map((b) => `${b.name}|${b.aliases.join('|')}`) .map((b) => `${b.name}|${b.aliases.join('|')}`)
.join('|'); .join('|');
regExpString += 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'); return new RegExp(regExpString, 'i');
} }