diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-01 09:09:38 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-01 09:09:38 +0300 |
commit | 7401c3a232003e3901010eccb4a31b7aa2741473 (patch) | |
tree | b6fd8487c0eea8dcf2dbacd96d96da0eecba3266 /lib/gitlab/untrusted_regexp | |
parent | 902b42250634a30b90b9f3bb40f026633c923dcc (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/untrusted_regexp')
-rw-r--r-- | lib/gitlab/untrusted_regexp/ruby_syntax.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/untrusted_regexp/ruby_syntax.rb b/lib/gitlab/untrusted_regexp/ruby_syntax.rb index 1f1da592ce0..db01875d080 100644 --- a/lib/gitlab/untrusted_regexp/ruby_syntax.rb +++ b/lib/gitlab/untrusted_regexp/ruby_syntax.rb @@ -6,7 +6,7 @@ module Gitlab # and converts that to RE2 representation: # /<regexp>/<flags> class RubySyntax - PATTERN = %r{^/(?<regexp>.*)/(?<flags>[ismU]*)$}.freeze + PATTERN = %r{^/(?<regexp>.*)/(?<flags>[ismU]*)$} # Checks if pattern matches a regexp pattern # but does not enforce it's validity |