X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9256397e46250352d02d0b7bd814b217b96df45a..1a20044dc7e5baaf836edae1a0631d7d34e76854:/config/initializers/eslint.rb?ds=sidebyside diff --git a/config/initializers/eslint.rb b/config/initializers/eslint.rb index 9d805eafb..9ddf4916e 100644 --- a/config/initializers/eslint.rb +++ b/config/initializers/eslint.rb @@ -3,7 +3,7 @@ if defined?(ESLintRails::Runner) module ESLintRails module ExcludeI18n def assets - super.reject { |a| a.to_s =~ %r{/i18n/} } + super.reject { |a| a.to_s.include?("/i18n/") } end end end