Merge pull request #366 from no1xsyzy/master

Fixes #302
This commit is contained in:
hamza zia 2017-07-27 09:26:05 +05:00 committed by GitHub
commit fc98bc5b31

View File

@ -79,7 +79,17 @@ angular
parse: function() {
return _
.chain(this.uris.trim().split(/\r?\n/g))
.map(function(d) { return d.trim().split(/\s+/g) })
.map(function(d) {
return _(d)
.replace(/("[^"]*")/g, function(c) {
return c.replace('%','%25').replace(' ','%20');
})
.trim()
.split(/\s+/g)
.map(function(c) {
return c.replace('%20',' ').replace('%25','%').replace(/"/g,'');
});
})
.filter(function(d) { return d.length })
.value();
}