Freeze the constant array
This commit is contained in:
parent
9401c137fd
commit
e9ffa33951
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
module Gitlab
|
||||
class UrlSanitizer
|
||||
ALLOWED_SCHEMES = %w[http https ssh git]
|
||||
ALLOWED_SCHEMES = %w[http https ssh git].freeze
|
||||
|
||||
def self.sanitize(content)
|
||||
regexp = URI::Parser.new.make_regexp(ALLOWED_SCHEMES)
|
||||
|
|
Loading…
Reference in a new issue