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