Skip to content

Commit

Permalink
Merge pull request #130 from ifrim/master
Browse files Browse the repository at this point in the history
Update sourcemap.js
  • Loading branch information
vladikoff committed Dec 11, 2015
2 parents a79d5de + b9fee72 commit 64ccc43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/lib/sourcemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ exports.init = function(grunt) {

var sourceContent;
// Browserify, as an example, stores a datauri at sourceMappingURL.
if (/data:application\/json;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.$1, 'base64').toString();
sourceContent = new Buffer(RegExp.$2, 'base64').toString();
} else {
// If sourceMapPath is relative, expand relative to the file
// refering to it.
Expand Down

0 comments on commit 64ccc43

Please sign in to comment.