Skip to content

Commit a1ef5d7

Browse files
committed
Mark known Regexp bug in CRuby as such
* It is fixed in Onigmo: k-takata/Onigmo#116 but Onigmo is not yet updated in CRuby: https://bugs.ruby-lang.org/issues/13671
1 parent 710a1a2 commit a1ef5d7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

spec/ruby/language/regexp_spec.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,11 @@
115115
/foo.(?<=\d)/.match("fooA foo1").to_a.should == ["foo1"]
116116
end
117117

118-
# https://bugs.ruby-lang.org/issues/13671
119-
it "raises a RegexpError for lookbehind with specific characters" do
120-
r = Regexp.new("(?<!dss)", Regexp::IGNORECASE)
121-
-> { r =~ "✨" }.should raise_error(RegexpError)
118+
ruby_bug "#13671", ""..."3.2" do # https://bugs.ruby-lang.org/issues/13671
119+
it "handles a lookbehind with ss characters" do
120+
r = Regexp.new("(?<!dss)", Regexp::IGNORECASE)
121+
r.should =~ "✨"
122+
end
122123
end
123124

124125
it "supports (?<! ) (negative lookbehind)" do

0 commit comments

Comments
 (0)