We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 710a1a2 commit a1ef5d7Copy full SHA for a1ef5d7
spec/ruby/language/regexp_spec.rb
@@ -115,10 +115,11 @@
115
/foo.(?<=\d)/.match("fooA foo1").to_a.should == ["foo1"]
116
end
117
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)
+ ruby_bug "#13671", ""..."3.2" do # https://bugs.ruby-lang.org/issues/13671
+ it "handles a lookbehind with ss characters" do
+ r = Regexp.new("(?<!dss)", Regexp::IGNORECASE)
+ r.should =~ "✨"
122
+ end
123
124
125
it "supports (?<! ) (negative lookbehind)" do
0 commit comments