Skip to content

Commit

Permalink
Bump uc.micro dependency, fix #36
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Puzrin committed May 30, 2016
1 parent bcd0f68 commit 8962cba
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
1.2.2 / 2016-05-30
------------------

- Security fix: due problem in `Any` class regexp from old `unicode-7.0.0`
package (used in `uc-micro`), hang happend with astral char patterns like
`😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡 .com` if fuzzy
options used. New installs will use fixed `uc-micro` automatically.
Old installs need to be updated. #36.
- Unicode rules updated to 8.+ version.


1.2.1 / 2016-04-29
------------------

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test": "make test"
},
"dependencies": {
"uc.micro": "^1.0.0"
"uc.micro": "^1.0.1"
},
"devDependencies": {
"ansi": "^0.3.0",
Expand Down
8 changes: 8 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,12 @@ describe('API', function () {
assert.equal(l.test('1.1.1.1.'), true);
assert.equal(l.match('1.1.1.1.')[0].text, '1.1.1.1');
});

it('should not hang in fuzzy mode with sequences of astrals', function () {
var l = linkify();

l.set({ fuzzyLink: true });

l.match('😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡😡 .com');
});
});

0 comments on commit 8962cba

Please sign in to comment.