Changes regex for parametrizeUrl to catch tokens that start with letters only, to allow for urls with ports

This commit is contained in:
Levi Tan Ong 2014-04-08 23:49:42 +08:00
parent 5eef004bbb
commit 86280e8261

View file

@ -388,7 +388,7 @@ new function(window) {
return xhrOptions
}
function parameterizeUrl(url, data) {
var tokens = url.match(/:\w+/g)
var tokens = url.match(/:[a-zA-Z]+/g)
if (tokens && data) {
for (var i = 0; i < tokens.length; i++) {
var key = tokens[i].slice(1)