-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
This can be replicated with the following test:
def test_scalp_does_not_error
a = VAExtractor.new
a.extract('SCALP ') # the 'LP ' will be captured
endThe regular expression incorrectly identifies some text as a potential VA score. If no VA score is found, these will raise an ErrorLateralityNotFound. (E.g., "LP " is captured.)
vaextractor/lib/vaextractor.rb
Line 211 in d7c7261
| raise ErrorLateralityNotFound |
NB: Under the current code, other errors may occur before since boundary conditions aren't checked, but this is the underlying issue. (E.g.,
vaextractor/lib/vaextractor.rb
Line 179 in d7c7261
| lat = searchpriorlines(lines[i-3..i-1].reverse) |
Metadata
Metadata
Assignees
Labels
No labels