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:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user