premailer / css_parser

Ruby CSS Parser
Other
279 stars 110 forks source link

3rd argument to Regexp.new is deprecated #133

Closed jacquesn closed 1 year ago

jacquesn commented 1 year ago

css_parser-1.12.0/lib/css_parser/regexps.rb:11: warning: 3rd argument to Regexp.new is deprecated and will be removed in Ruby 3.3; use 2nd argument instead

Pretty self-explanatory, but the CssParser module calls Regexp.new in several places with a third argument. Use of the third argument is deprecated in Ruby 3.2.0.

grosser commented 1 year ago

can you make a PR to fix it ?