Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Don't join data URIs #77

Merged
merged 1 commit into from

1 participant

Nick Fitzgerald
Nick Fitzgerald fitzgen merged commit 3c8d6a4 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 9, 2013
  1. Nick Fitzgerald

    Don't join data URIs

    fitzgen authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/source-map/util.js
3  lib/source-map/util.js
View
@@ -31,6 +31,7 @@ define(function (require, exports, module) {
exports.getArg = getArg;
var urlRegexp = /([\w+\-.]+):\/\/((\w+:\w+)@)?([\w.]+)?(:(\d+))?(\S+)?/;
+ var dataUrlRegexp = /^data:.+\,.+/;
function urlParse(aUrl) {
var match = aUrl.match(urlRegexp);
@@ -68,7 +69,7 @@ define(function (require, exports, module) {
function join(aRoot, aPath) {
var url;
- if (aPath.match(urlRegexp)) {
+ if (aPath.match(urlRegexp) || aPath.match(dataUrlRegexp)) {
return aPath;
}
Something went wrong with that request. Please try again.