Commit e9ffa339 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Freeze the constant array

parent 9401c137
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)
......
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