lib/knj/strings.rb in knjrbfw-0.0.59 vs lib/knj/strings.rb in knjrbfw-0.0.62
- old
+ new
@@ -43,10 +43,10 @@
when "m"
arg_two |= Regexp::MULTILINE
when "x"
arg_two |= Regexp::EXTENDED
when "U"
- raise Knj::Errors::InvalidData, "Ruby does (as far as I know) not support the 'U'-modifier. You should rewrite your regex with non-greedy operators such as '(\d+?)' instead for: '#{str}'."
+ raise ArgumentError, "Ruby does (as far as I know) not support the 'U'-modifier. You should rewrite your regex with non-greedy operators such as '(\d+?)' instead for: '#{str}'."
else
raise "Unknown argument: '#{arg}'."
end
end
end
\ No newline at end of file