Skip to content

Commit

Permalink
Merge pull request #176 from alexjking/fix-browserify-sourcemap-regex
Browse files Browse the repository at this point in the history
fix(sourcemap-regex): fix regex to match browserify sorucemap charset
  • Loading branch information
vladikoff authored May 19, 2021
2 parents dcc347f + b1cf785 commit 9054b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/lib/sourcemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ exports.init = function(grunt) {

var sourceContent;
// Browserify, as an example, stores a datauri at sourceMappingURL.
if (/data:application\/json;(charset:utf-8;)?base64,([^\s]+)/.test(sourceMapFile)) {
if (/data:application\/json;(charset.utf-8;)?base64,([^\s]+)/.test(sourceMapFile)) {
// Set sourceMapPath to the file that the map is inlined.
sourceMapPath = filename;
sourceContent = new Buffer(RegExp.$2, 'base64').toString();
Expand Down

0 comments on commit 9054b14

Please sign in to comment.