DEV: Correct sourceMappingURL regex (#23504)

This comment isn't necessarily on a line by itself, so we need to remove the `^` from the regex. This will fix `EMBER_ENV=development bin/rake assets:precompile`
This commit is contained in:
David Taylor 2023-09-11 11:39:55 +01:00 committed by GitHub
parent 935625ce2c
commit 055d29d898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ module EmberCli
end
def self.parse_source_map_path(file)
File.read("#{dist_dir}/assets/#{file}")[%r{^//# sourceMappingURL=(.*)$}, 1]
File.read("#{dist_dir}/assets/#{file}")[%r{//# sourceMappingURL=(.*)$}, 1]
end
def self.is_ember_cli_asset?(name)