diff --git a/source-map-support.js b/source-map-support.js index 7ce7570..52b4f24 100644 --- a/source-map-support.js +++ b/source-map-support.js @@ -137,7 +137,7 @@ function retrieveSourceMapURL(source) { // Get the URL of the source map fileData = retrieveFile(source); - var re = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/mg; + 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. var lastMatch, match;