[Tags] Certain franchises rule the world - Allow é in tag names

This commit is contained in:
Kira 2022-01-02 14:41:16 -08:00
parent 8877fcf7f5
commit 0758c08a66

View File

@ -38,7 +38,7 @@ class TagNameValidator < ActiveModel::EachValidator
record.errors.add(attribute, "'#{value}' cannot begin with '#{$1}:'")
end
if normalized =~ /[^[:ascii:]]/ && !options[:disable_ascii_check] == true
if normalized =~ /[^[:ascii:]é]/ && !options[:disable_ascii_check] == true
record.errors.add(attribute, "'#{value}' must consist of only ASCII characters")
end
end