diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..485dee6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea diff --git a/index.html b/index.html index 9131f11..81656b1 100644 --- a/index.html +++ b/index.html @@ -69,7 +69,9 @@

return; } - input = input.slice(0, -1); + if (input.slice(-1) == ';') { + input = input.slice(0, -1); + } let parsed = null; diff --git a/js/builder.js b/js/builder.js index 8b89d12..97e8acc 100644 --- a/js/builder.js +++ b/js/builder.js @@ -250,6 +250,8 @@ class Builder { break; case '<': + case '!=': + case '<>': func_name = 'where'; args.push(op.operation); args.push(op.right.value);