File tree Expand file tree Collapse file tree
lib/codeql/ruby/security/performance
test/library-tests/regexp Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -488,7 +488,7 @@ abstract class RegExp extends AST::StringlikeLiteral {
488488 this .group ( start , end ) and
489489 exists ( int nameEnd |
490490 this .namedGroupStart ( start , nameEnd ) and
491- result = this .getText ( ) .substring ( start + 4 , nameEnd - 1 )
491+ result = this .getText ( ) .substring ( start + 3 , nameEnd - 1 )
492492 )
493493 }
494494
Original file line number Diff line number Diff line change 11groupName
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 |
55groupNumber
66| regexp.rb:46:2:46:6 | (foo) | 1 |
77| regexp.rb:47:4:47:8 | (o\|b) | 1 |
You can’t perform that action at this time.
0 commit comments