Skip to content

Commit 18bd587

Browse files
committed
Accept lower-case or upper-case operators
1 parent 2919fa9 commit 18bd587

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scan.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = function (source) {
3737

3838
function operator () {
3939
var string
40-
var possibilities = ['WITH', 'AND', 'OR', '(', ')', ':', '+']
40+
var possibilities = ['WITH', 'with', 'AND', 'and', 'OR', 'or', '(', ')', ':', '+']
4141
for (var i = 0; i < possibilities.length; i++) {
4242
string = read(possibilities[i])
4343
if (string) {
@@ -51,7 +51,7 @@ module.exports = function (source) {
5151

5252
return string && {
5353
type: 'OPERATOR',
54-
string: string
54+
string: string.toUpperCase()
5555
}
5656
}
5757

0 commit comments

Comments
 (0)