Skip to content

Commit

Permalink
Merge pull request #834 from spencermountain/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
spencermountain authored Apr 18, 2021
2 parents 4579627 + af5602f commit 49024fc
Show file tree
Hide file tree
Showing 23 changed files with 1,808 additions and 253 deletions.
2 changes: 1 addition & 1 deletion builds/compromise-tokenize.js

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions builds/compromise.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* compromise 13.11.0 MIT */
/* compromise 13.11.1 MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
Expand Down Expand Up @@ -1190,6 +1190,9 @@
let obj = parse$2(str);
this.text = obj.text;
this.clean = obj.clean;
this.reduced = obj.reduced;
this.root = null;
this.implicit = null;
return this;
}

Expand Down Expand Up @@ -2223,7 +2226,12 @@


if (reg.anything === true && reg.greedy === true) {
let skipto = _matchLogic.greedyTo(state, regs[state.r + 1]); // ensure it's long enough
let skipto = _matchLogic.greedyTo(state, regs[state.r + 1]); //maybe we couldn't find it

if (skipto === null || skipto === 0) {
return null;
} // ensure it's long enough


if (reg.min !== undefined && skipto - state.t < reg.min) {
return null;
Expand All @@ -2233,10 +2241,6 @@
if (reg.max !== undefined && skipto - state.t > reg.max) {
state.t = state.t + reg.max;
continue;
}

if (skipto === null) {
return null; //couldn't find it
} // is it really this easy?....


Expand Down Expand Up @@ -3656,7 +3660,7 @@

var fromJSON_1 = fromJSON;

var _version = '13.11.0';
var _version = '13.11.1';

const entity = ['Person', 'Place', 'Organization'];
var nouns$1 = {
Expand Down
2 changes: 1 addition & 1 deletion builds/compromise.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/compromise.mjs

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ While all _Major_ releases should be reviewed, our only two _large_ releases are
-->

#### 13.11.1 [April 2021]

- **[fix]** - obscure runtime error in capture-groups
update deps
_plugin-releases_: typeahead

#### 13.11.0 [April 2021]

- **[change]** - use babel default build target (drop ie11 polyfill)
Expand Down
Loading

0 comments on commit 49024fc

Please sign in to comment.