Lines 17-23
function patron_autocomplete(node, options) {
Link Here
|
17 |
return node.autocomplete({ |
17 |
return node.autocomplete({ |
18 |
source: function( request, response ) { |
18 |
source: function( request, response ) { |
19 |
let subquery_and = []; |
19 |
let subquery_and = []; |
20 |
request.term.split(' ') |
20 |
request.term.split(/[\s,]+/) |
21 |
.filter(function(s){ return s.length }) |
21 |
.filter(function(s){ return s.length }) |
22 |
.forEach(function(pattern,i){ |
22 |
.forEach(function(pattern,i){ |
23 |
subquery_and.push( |
23 |
subquery_and.push( |
24 |
- |
|
|