We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3cccd0 commit 0329e70Copy full SHA for 0329e70
expression.js
@@ -35,19 +35,19 @@ function word() {
35
}
36
37
function notop() {
38
- return this.match(/^NOT/i).toUpperCase();
+ return this.match(/^NOT\b/i).toUpperCase();
39
40
41
function negation() {
42
return this.seq(notop, notFactor).slice(1);
43
44
45
function conjunction() {
46
- return OPTREES[this.match(/^AND/i).toUpperCase()];
+ return OPTREES[this.match(/^AND\b/i).toUpperCase()];
47
48
49
function disjunction() {
50
- return OPTREES[this.match(/^OR/i).toUpperCase()];
+ return OPTREES[this.match(/^OR\b/i).toUpperCase()];
51
52
53
var OPTREES = {
0 commit comments