Skip to content

Commit

Permalink
[solr mode] Only match operators when upper-case
Browse files Browse the repository at this point in the history
FIX: Only match Solr operator words when they are upper-case.
  • Loading branch information
MaximeGoyette committed Oct 31, 2023
1 parent ac35c73 commit 48c56cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mode/solr.js
@@ -1,6 +1,6 @@
var isStringChar = /[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/;
var isOperatorChar = /[\|\!\+\-\*\?\~\^\&]/;
var isOperatorString = /^(OR|AND|NOT|TO)$/i;
var isOperatorString = /^(OR|AND|NOT|TO)$/;

function isNumber(word) {
return parseFloat(word).toString() === word;
Expand Down

0 comments on commit 48c56cf

Please sign in to comment.