X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/52d7cae438d4b6f57423a3e22e4a5aa922a47336..2af0840ff314f9d1e0265a4a1b50fc6db4af9047:/app/helpers/asset_helper.rb diff --git a/app/helpers/asset_helper.rb b/app/helpers/asset_helper.rb index 67c1a141d..5b0740735 100644 --- a/app/helpers/asset_helper.rb +++ b/app/helpers/asset_helper.rb @@ -3,7 +3,7 @@ module AssetHelper assets = {} Rails.application.assets.index.each_logical_path("#{directory}/*") do |path| - assets[path.sub(/^#{directory}\//, "")] = asset_path(path) + assets[path.sub(%r{^#{directory}/}, "")] = asset_path(path) end assets