1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #40918 from ivgiuliani/ivgiuliani/better-warning-invisible-space

Include file path in invisible space warning
This commit is contained in:
Ryuta Kamizono 2020-12-25 05:21:53 +09:00 committed by GitHub
commit f2bd5197ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ module ActiveSupport
File.read(content_path).tap do |content| File.read(content_path).tap do |content|
if content.include?("\u00A0") if content.include?("\u00A0")
warn "File contains invisible non-breaking spaces, you may want to remove those" warn "#{content_path} contains invisible non-breaking spaces, you may want to remove those"
end end
end end
end end