Only try to regex replace quotes in strings

This commit is contained in:
Michael Abashian
2017-01-13 13:30:17 -05:00
parent fb6d3ad547
commit 3879760430

View File

@@ -80,7 +80,9 @@ export default ['$q', 'Rest', 'ProcessErrors', '$rootScope', 'Wait', 'DjangoSear
return concated;
}
else {
value = value.replace(/"|'/g, "");
if(value && typeof value === 'string') {
value = value.replace(/"|'/g, "");
}
return `${key}=${value}&`;
}
}