Merge pull request #58 from marcominetti/fix/57

Fixed sourcemap url detection.
This commit is contained in:
Marco Minetti 2015-05-15 14:32:38 +02:00
commit d85089bea0

View File

@ -72,7 +72,7 @@ function retrieveSourceMapURL(source) {
// Get the URL of the source map
fileData = retrieveFile(source);
var match = /\/\/[#@]\s*sourceMappingURL=(.*)\s*$/m.exec(fileData);
var match = /\/\/[#@]\s*sourceMappingURL=([^'"]+)\s*$/m.exec(fileData);
if (!match) return null;
return match[1];
};