Replacing chararacters with chars was only done for startLine, not endLine.
So startLine would never match posReg regex with position strings containing characters, and usually end up as -1.
I also adjusted posReg, but I'm not sure, if those .* were in there because of some systems/targets reporting weird numbers...
Replacing
chararacters
withchars
was only done forstartLine
, notendLine
. SostartLine
would never matchposReg
regex with position strings containingcharacters
, and usually end up as-1
.I also adjusted
posReg
, but I'm not sure, if those.*
were in there because of some systems/targets reporting weird numbers...