null+****@clear*****
null+****@clear*****
2012年 8月 1日 (水) 16:57:12 JST
Yoji SHIDARA 2012-08-01 16:57:12 +0900 (Wed, 01 Aug 2012) New Revision: e6156275fc35d808930a125fe4397912053e7404 https://github.com/groonga/gcs/commit/e6156275fc35d808930a125fe4397912053e7404 Log: Move normal case code to normal level Modified files: lib/q-translator.js Modified: lib/q-translator.js (+2 -3) =================================================================== --- lib/q-translator.js 2012-08-01 16:54:31 +0900 (c34b0a8) +++ lib/q-translator.js 2012-08-01 16:57:12 +0900 (9a495b1) @@ -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 + "'"; }, -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...Download