Skip to content

Commit

Permalink
Remove sourceMappingURL comment even if it is not on its own line. (#178
Browse files Browse the repository at this point in the history
)
  • Loading branch information
johanberonius authored and stephenlacy committed Jun 21, 2016
1 parent 37d5dad commit 737ce9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -46,7 +46,7 @@ module.exports = function (options) {
if (res.result !== undefined) {
file.path = rext(file.path, '.css');
if (res.sourcemap) {
res.result = res.result.replace(/^\s*\/\*[@#][\s\t]+sourceMappingURL=.*$/mg, '');
res.result = res.result.replace(/\/\*[@#][\s\t]+sourceMappingURL=.*?\*\/$/mg, '');
res.sourcemap.file = file.relative;
applySourceMap(file, res.sourcemap);
}
Expand Down

0 comments on commit 737ce9e

Please sign in to comment.