DEV: Apply syntax_tree formatting to lib/*

This commit is contained in:
David Taylor
2023-01-09 12:10:19 +00:00
parent b0fda61a8e
commit 6417173082
507 changed files with 16550 additions and 12627 deletions

View File

@ -1,10 +1,9 @@
# frozen_string_literal: true
module RegexSettingValidation
def initialize_regex_opts(opts = {})
@regex = Regexp.new(opts[:regex]) if opts[:regex]
@regex_error = opts[:regex_error] || 'site_settings.errors.regex_mismatch'
@regex_error = opts[:regex_error] || "site_settings.errors.regex_mismatch"
end
def regex_match?(val)
@ -15,5 +14,4 @@ module RegexSettingValidation
true
end
end