File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
lib/codeql/ruby/security/performance
test/library-tests/regexp Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -488,7 +488,7 @@ abstract class RegExp extends AST::StringlikeLiteral {
488
488
this .group ( start , end ) and
489
489
exists ( int nameEnd |
490
490
this .namedGroupStart ( start , nameEnd ) and
491
- result = this .getText ( ) .substring ( start + 4 , nameEnd - 1 )
491
+ result = this .getText ( ) .substring ( start + 3 , nameEnd - 1 )
492
492
)
493
493
}
494
494
Original file line number Diff line number Diff line change 1
1
groupName
2
- | regexp.rb:52:2:52:11 | (?<id>\\w+) | d |
3
- | regexp.rb:53:2:53:12 | (?'foo'fo+) | oo |
4
- | regexp.rb:57:2:57:11 | (?<qux>q+) | ux |
2
+ | regexp.rb:52:2:52:11 | (?<id>\\w+) | id |
3
+ | regexp.rb:53:2:53:12 | (?'foo'fo+) | foo |
4
+ | regexp.rb:57:2:57:11 | (?<qux>q+) | qux |
5
5
groupNumber
6
6
| regexp.rb:46:2:46:6 | (foo) | 1 |
7
7
| regexp.rb:47:4:47:8 | (o\|b) | 1 |
You can’t perform that action at this time.
0 commit comments