#1039 ignore url interpolations without mapped values

This commit is contained in:
Leo Horie 2016-05-06 11:49:00 -04:00
parent db17958f0b
commit dee64503db
4 changed files with 9 additions and 3 deletions

View file

@ -2113,7 +2113,7 @@
if (data) {
url = url.replace(/:[a-z]\w+/gi, function (token){
var key = token.slice(1)
var value = data[key]
var value = data[key] || token
delete data[key]
return value
})