Make sure we can handle numbers and spaces in book names like 1 Peter, etc.
This commit is contained in:
parent
ce0aff6472
commit
66c26bdfa3
|
@ -445,7 +445,7 @@ class UlbXmlImportHandler
|
|||
protected function parseVerseNumber(DOMElement $verseElem) : int
|
||||
{
|
||||
$string = $verseElem->getAttribute('name');
|
||||
preg_match("|^[A-Za-z1-3]*\s*[0-9]*:([0-9]*)$|", $string, $matches);
|
||||
preg_match("|^[A-Za-z1-3 ]*\s*[0-9]*:([0-9]*)$|", $string, $matches);
|
||||
|
||||
return $matches[1];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue