Browse Source

trim

pull/378/head
Peter Johnson 9 years ago
parent
commit
b974f304e7
  1. 2
      query/autocomplete.js

2
query/autocomplete.js

@ -124,7 +124,7 @@ function generateQuery( clean ){
var vs = new peliasQuery.Vars( defaults );
// remove single grams at end
clean.text = clean.text.replace(/( .$)/g,'');
clean.text = clean.text.replace(/( .$)/g,'').trim();
// input text
vs.var( 'input:name', clean.text );

Loading…
Cancel
Save