ubsicap / usx

Unified Scripture XML
30 stars 6 forks source link

Fix for double strongs references #42

Closed jonbitgood closed 4 years ago

jonbitgood commented 4 years ago

The char documentation for w states that the strongs references allow multiple numbers per attribute.

strong="H01234,G05485"

However the regex doesn't match this use case.

Changing Line 610 of the rnc from

attribute strong { xsd:string { pattern = "[HG]\d{4,5}(:[a-z])?"} }?

to:

attribute strong { xsd:string { pattern = "([HG]\d{4,5}(:[a-z])?,?)+"} }?

Fixes this