Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Mar 21, 2017
1 parent f8963bb commit 1e7acef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/Thinker.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@ Thinker.prototype.find = function (params) {
// Remove dashes without space in front
expression = expression.replace(/([^\s]){1}-/, "$1");

// Replace multiple spaces with singles
expression = expression.replace(/\s+/g, " ");

// Remove leading and trailing spaces from search query
expression = expression.trim(" ");

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thinker-fts",
"version": "1.1.4",
"version": "1.1.5",
"description": "Pure Javascript/Node.js in-memory full text search engine.",
"author": "Hexagon <github.com/hexagon>",
"contributors": [{
Expand Down

0 comments on commit 1e7acef

Please sign in to comment.