mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 00:08:44 -03:30
Removed the use of startsWith from encodeParam. PhantomJS didn't recognize that when the unit tests ran in jenkins. Rather than try to figure out why that might be the case I just changed the line.
This commit is contained in:
@@ -94,7 +94,7 @@ export default ['$q', 'Rest', 'ProcessErrors', '$rootScope', 'Wait', 'DjangoSear
|
|||||||
let keySplit = paramParts[0].split('.');
|
let keySplit = paramParts[0].split('.');
|
||||||
let exclude = false;
|
let exclude = false;
|
||||||
let lessThanGreaterThan = paramParts[1].match(/^(>|<).*$/) ? true : false;
|
let lessThanGreaterThan = paramParts[1].match(/^(>|<).*$/) ? true : false;
|
||||||
if(keySplit[0].startsWith("-")) {
|
if(keySplit[0].match(/^-/g)) {
|
||||||
exclude = true;
|
exclude = true;
|
||||||
keySplit[0] = keySplit[0].replace(/^-/, '');
|
keySplit[0] = keySplit[0].replace(/^-/, '');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user