Merge pull request #35166 from znz/improve-regexp
Improve regexp of `html_safe_translation_key?`
This commit is contained in:
commit
deca8c5230
|
@ -138,7 +138,7 @@ module ActionView
|
|||
end
|
||||
|
||||
def html_safe_translation_key?(key)
|
||||
/(\b|_|\.)html$/.match?(key.to_s)
|
||||
/([_.]|\b)html\z/.match?(key.to_s)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue