Navigation Menu

Skip to content

Commit

Permalink
Move normal case code to normal level
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Aug 1, 2012
1 parent 0191b24 commit e615627
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/q-translator.js
Expand Up @@ -32,11 +32,10 @@ QueryTranslator.prototype = {
translateIndividualTerm: function(query, context) {
var term = '';
for (; context.offset < query.length; context.offset++) {
if (/[^ \+\-\|]/.test(query[context.offset])) {
term += query[context.offset];
} else {
if (/[ \+\-\|]/.test(query[context.offset])) {
break;
}
term += query[context.offset];
}
return context.defaultField + ":'" + term + "'";
},
Expand Down

0 comments on commit e615627

Please sign in to comment.