Skip to content

Commit c0e25f8

Browse files
committed
Accept mixed-case operators
1 parent 52cb46f commit c0e25f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scan.js

+1-1
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', 'with', 'AND', 'and', 'OR', 'or', '(', ')', ':', '+']
40+
var possibilities = [/^WITH/i, /^AND/i, /^OR/i, '(', ')', ':', '+']
4141
for (var i = 0; i < possibilities.length; i++) {
4242
string = read(possibilities[i])
4343
if (string) {

0 commit comments

Comments
 (0)