Commit 9eb64a34 authored by Roger Rüttimann's avatar Roger Rüttimann

fix initialization of JsRegex after js_regex gem update change

parent d4001e15
...@@ -30,7 +30,7 @@ module UsersHelper ...@@ -30,7 +30,7 @@ module UsersHelper
pattern, options = if settings.user_default_internal_regex_enabled? pattern, options = if settings.user_default_internal_regex_enabled?
regex = settings.user_default_internal_regex_instance regex = settings.user_default_internal_regex_instance
JsRegex.new(regex).to_h.slice(:source, :options).values JsRegex.new(regex, options: 'g').to_h.slice(:source, :options).values
end end
{ user_internal_regex_pattern: pattern, user_internal_regex_options: options } { user_internal_regex_pattern: pattern, user_internal_regex_options: options }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment