mirror of
https://github.com/KevinMidboe/inline-html.git
synced 2025-12-08 20:29:06 +00:00
Fix bug where assets with a space in their path could not be bundled.
This commit is contained in:
@@ -16,7 +16,9 @@ var url = require('url');
|
||||
var clean = function (path) {
|
||||
path = url.parse(path);
|
||||
path = _.pick(path, ['protocol', 'host', 'pathname']);
|
||||
return url.format(path);
|
||||
path = url.format(path);
|
||||
path = decodeURI(path);
|
||||
return path;
|
||||
};
|
||||
/**
|
||||
* Convert local url data type paths to datauris.
|
||||
|
||||
Reference in New Issue
Block a user