Changes regex for parametrizeUrl to catch tokens that start with letters only, to allow for urls with ports
This commit is contained in:
parent
5eef004bbb
commit
86280e8261
1 changed files with 1 additions and 1 deletions
|
|
@ -388,7 +388,7 @@ new function(window) {
|
||||||
return xhrOptions
|
return xhrOptions
|
||||||
}
|
}
|
||||||
function parameterizeUrl(url, data) {
|
function parameterizeUrl(url, data) {
|
||||||
var tokens = url.match(/:\w+/g)
|
var tokens = url.match(/:[a-zA-Z]+/g)
|
||||||
if (tokens && data) {
|
if (tokens && data) {
|
||||||
for (var i = 0; i < tokens.length; i++) {
|
for (var i = 0; i < tokens.length; i++) {
|
||||||
var key = tokens[i].slice(1)
|
var key = tokens[i].slice(1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue