File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
test/library-tests/regexparser Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ module Impl implements RegexTreeViewSig {
239239 * `localOffset` will be the offset of this `RegExpTerm` inside `result`.
240240 */
241241 StringPart getPart ( int localOffset ) {
242- exists ( int index , int prefixLength | index = max ( int i | this .getPartOffset ( i ) < start ) |
242+ exists ( int index , int prefixLength | index = max ( int i | this .getPartOffset ( i ) <= start ) |
243243 result = re .( StrConst ) .getImplicitlyConcatenatedPart ( index ) and
244244 result .contextSize ( prefixLength , _) and
245245 // Example:
Original file line number Diff line number Diff line change 5555)
5656
5757# plain string with multiple parts across lines
58- re .compile ( # $ location=1:2 location=2:7 SPURIOUS:location=2:29 MISSING: location=3:2
58+ re .compile ( # $ location=1:2 location=2:7 location=3:2
5959'[this] is a test'
6060' and [this] is another test'
6161'[this] comes right at the start of a part'
You can’t perform that action at this time.
0 commit comments