[osis-core] bug in 2.1.1 osisGenRegex

Chris Little chrislit at crosswire.org
Mon Oct 15 23:58:01 MST 2007


Does this list still work? Is anyone still out there? Guess we'll soon 
find out. :)


Troy and I found a bug in the regex osisGenRegex in the 2.1.1 schema. 
Currently that regex looks like [1], but it should looks like [2]:

[1]     ((((\p{L}|\p{N}|_)+)(\.(\p{L}|\p{N}|_))*:)?([^:\s])+)
[2]     ((((\p{L}|\p{N}|_)+)(\.(\p{L}|\p{N}|_)+)*:)?([^:\s])+)

                         (missing + right here ^)

So our document with the following element isn't valid because the 
string "Strong" cannot be more than 1 character long in the current schema:
<w morph="robinson:N-NSF" lemma="lemma.Strong:βίβλος">βίβλος</w>


--Chris



More information about the osis-core mailing list