summaryrefslogtreecommitdiff
path: root/test/ruby/test_regexp.rb
diff options
context:
space:
mode:
authorTSUYUSATO Kitsune <[email protected]>2023-05-22 11:27:34 +0900
committer<[email protected]>2023-05-22 11:27:34 +0900
commita5819b5b2510556de0719317662d96096ce4089a ()
tree2f9d3a6d5dc0742ff2088630dfe99862377bc49b /test/ruby/test_regexp.rb
parent872249e209fdb7b7c890a93b0f93a74a62d21aec (diff)
Allow the match cache optimization for atomic groups (#7804)
Notes: Merged-By: makenowjust <[email protected]>
-rw-r--r--test/ruby/test_regexp.rb10
1 files changed, 10 insertions, 0 deletions
@@ -1760,6 +1760,16 @@ class TestRegexp < Test::Unit::TestCase
end;
end
def test_cache_opcodes_initialize
str = 'test1-test2-test3-test4-test_5'
re = '^([0-9a-zA-Z\-/]*){1,256}$'