mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #35166 from znz/improve-regexp
Improve regexp of `html_safe_translation_key?`
This commit is contained in:
commit
deca8c5230
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue