diff --git a/.eslintrc b/.eslintrc index b311b6cf4..777f4398a 100644 --- a/.eslintrc +++ b/.eslintrc @@ -6,12 +6,13 @@ "node": true }, "parserOptions": { - "ecmaVersion": 2017, + "ecmaVersion": 2018, "sourceType": "module", "ecmaFeatures": {} }, "extends": [], "rules": { + "regexp/prefer-d": 0, "semi": ["warn", "never"], "indent": ["error", 2, { "SwitchCase": 1 }], "spaced-comment": 0, diff --git a/README.md b/README.md index 3ab5b71ee..f12698c74 100644 --- a/README.md +++ b/README.md @@ -26,17 +26,36 @@ - - - - + + +
nlp("that's it. Back to Winnipeg!").has('it back')//false
- **nested match syntax:**
diff --git a/builds/compromise-tokenize.js b/builds/compromise-tokenize.js
index 05c8fedf9..636a51cd7 100644
--- a/builds/compromise-tokenize.js
+++ b/builds/compromise-tokenize.js
@@ -1 +1 @@
-!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).nlp=e()}(this,(function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r