Skip to content

Commit

Permalink
Alter map comment to avoid self match
Browse files Browse the repository at this point in the history
Fixes evanw#156
  • Loading branch information
kpdecker committed Nov 28, 2016
1 parent e637071 commit 42ab7d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source-map-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function retrieveSourceMapURL(source) {

// Get the URL of the source map
fileData = retrieveFile(source);
// //# sourceMappingURL=foo.js.map /*# sourceMappingURL=foo.js.map */
// //#[ ]sourceMappingURL=foo.js.map /*#[ ]sourceMappingURL=foo.js.map */
var re = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/mg;
// Keep executing the search to find the *last* sourceMappingURL to avoid
// picking up sourceMappingURLs from comments, strings, etc.
Expand Down

0 comments on commit 42ab7d8

Please sign in to comment.