mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-17 11:04:22 +01:00
quotes are fine, undoing as well
This commit is contained in:
parent
995ca3bc3c
commit
4a61a0d213
1 changed files with 2 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
||||||
const tokenList = [
|
const tokenList = [
|
||||||
['fuzz', /^~(?:\d+(\.\d+)?|\.\d+)/],
|
['fuzz', /^~(?:\d+(\.\d+)?|\.\d+)/],
|
||||||
['boost', /^\^[\-\+]?\d+(\.\d+)?/],
|
['boost', /^\^[\-\+]?\d+(\.\d+)?/],
|
||||||
['quoted_lit', /^\s*"((?:(?:[^"]|\\")+))"/],
|
['quoted_lit', /^\s*"(?:(?:[^"]|\\")+)"/],
|
||||||
['lparen', /^\s*\(\s*/],
|
['lparen', /^\s*\(\s*/],
|
||||||
['rparen', /^\s*\)\s*/],
|
['rparen', /^\s*\)\s*/],
|
||||||
['and_op', /^\s*(?:\&\&|AND)\s+/],
|
['and_op', /^\s*(?:\&\&|AND)\s+/],
|
||||||
|
@ -496,7 +496,6 @@ function generateLexArray(searchStr, options) {
|
||||||
let tokenName = tokenArr[0],
|
let tokenName = tokenArr[0],
|
||||||
tokenRE = tokenArr[1],
|
tokenRE = tokenArr[1],
|
||||||
match = tokenRE.exec(searchStr),
|
match = tokenRE.exec(searchStr),
|
||||||
initialMatch = match,
|
|
||||||
balanced, op;
|
balanced, op;
|
||||||
|
|
||||||
if (match) {
|
if (match) {
|
||||||
|
@ -604,7 +603,7 @@ function generateLexArray(searchStr, options) {
|
||||||
searchTerm.append(match);
|
searchTerm.append(match);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
searchTerm = new SearchTerm(initialMatch[1], options);
|
searchTerm = new SearchTerm(match, options);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'word':
|
case 'word':
|
||||||
|
|
Loading…
Reference in a new issue