diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-12-02 02:29:36 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-12-02 03:57:41 +0900 |
commit | a607d62d8c5786087916413c369dbde0c62db573 (patch) | |
tree | ade98fe4de166625adf6fd871ef343f98eb8238f /test/ruby/test_parse.rb | |
parent | ec83bd7356d639fe34f6843c4f1805c63cfdfa49 (diff) |
[Bug #20033] Dynamic regexp should not assign captures
Diffstat (limited to 'test/ruby/test_parse.rb')
-rw-r--r-- | test/ruby/test_parse.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb index 6121205857..acaeedcc2d 100644 --- a/test/ruby/test_parse.rb +++ b/test/ruby/test_parse.rb @@ -1071,6 +1071,7 @@ x = __ENCODING__ '(%w();/(?<a>.*)/)', '(1; (2; 3; (4; /(?<a>.*)/)))', '(1+1; /(?<a>.*)/)', + '/#{""}(?<a>.*)/', ) do |code, pass| token = Random.bytes(4).unpack1("H*") if pass |