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 {
239
239
* `localOffset` will be the offset of this `RegExpTerm` inside `result`.
240
240
*/
241
241
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 ) |
243
243
result = re .( StrConst ) .getImplicitlyConcatenatedPart ( index ) and
244
244
result .contextSize ( prefixLength , _) and
245
245
// Example:
Original file line number Diff line number Diff line change 55
55
)
56
56
57
57
# 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
59
59
'[this] is a test'
60
60
' and [this] is another test'
61
61
'[this] comes right at the start of a part'
You can’t perform that action at this time.
0 commit comments