We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 208d1df + 4852362 commit bfc73f9Copy full SHA for bfc73f9
source-map-support.js
@@ -137,7 +137,7 @@ function retrieveSourceMapURL(source) {
137
138
// Get the URL of the source map
139
fileData = retrieveFile(source);
140
- var re = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/mg;
+ var re = /(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg;
141
// Keep executing the search to find the *last* sourceMappingURL to avoid
142
// picking up sourceMappingURLs from comments, strings, etc.
143
var lastMatch, match;
0 commit comments