20 - Modified passage reference regexp to accept digits in the Bible version code option.
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user