Merge pull request #42 from levitanong/fix-url-tokens

Changes regex for parametrizeUrl to catch tokens that start with letters only, to allow for urls with ports
This commit is contained in:
Leo Horie 2014-04-08 14:38:56 -04:00
commit 8d3d2fa397

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)