mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03:30
Adds comment explaining logic following the split on empty string in splitFilterIntoTerms
This commit is contained in:
parent
47d6e5c028
commit
d9d3c5d15f
@ -14,6 +14,10 @@ export default [function() {
|
||||
let groups = [];
|
||||
let quoted;
|
||||
|
||||
// This split _may_ split search terms down the middle
|
||||
// ex) searchString=ansible_facts.some_other_thing:"foo foobar" ansible_facts.some_thing:"foobar"
|
||||
// would result in 3 different substring's but only two search terms
|
||||
// This logic handles that scenario with the `quoted` variable
|
||||
searchString.split(' ').forEach(substring => {
|
||||
if (/:"/g.test(substring)) {
|
||||
if (/"$/.test(substring)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user