Opened 11 years ago
Closed 11 years ago
#1807 closed defect (fixed)
FlatFileParser should check section header regexp before ignore regexp in hasMoreData method
Reported by: | Nicklas Nordborg | Owned by: | everyone |
---|---|---|---|
Priority: | minor | Milestone: | BASE 3.3 |
Component: | core | Version: | |
Keywords: | Cc: |
Description
The FlatFileParser.hasMoreData()
method is not consistent with the FlatFileParser.parseHeaders()
method. While parsing a line the latter method check if the line matches the section regular expression before the ignore regular expression, but the former method does it in the other order. In some cases, this may lead to difficulties to write code that matches a new section correctly depending on where it appears in a file. To make the parsing more predicable the section regular expression should be checked first on both cases.
Note:
See TracTickets
for help on using tickets.
(In [6458]) Fixes #1807: FlatFileParser should check section header regexp before ignore regexp in hasMoreData method