mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 16:58:46 -03:30
Only try to regex replace quotes in strings
This commit is contained in:
@@ -80,7 +80,9 @@ export default ['$q', 'Rest', 'ProcessErrors', '$rootScope', 'Wait', 'DjangoSear
|
|||||||
return concated;
|
return concated;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
value = value.replace(/"|'/g, "");
|
if(value && typeof value === 'string') {
|
||||||
|
value = value.replace(/"|'/g, "");
|
||||||
|
}
|
||||||
return `${key}=${value}&`;
|
return `${key}=${value}&`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user