Skip to content

Commit

Permalink
chore: bump deps, lock re2@1.15.4 per uhop/node-re2#94
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed Feb 14, 2021
1 parent 542654b commit 2ac0cdc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9,841 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Since we cannot use regular expression's "negative lookbehinds" functionality (d
[MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com/)


##
##

[npm]: https://www.npmjs.com/

Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@
"Diego Perini"
],
"dependencies": {
"ip-regex": "^4.1.0",
"re2": "^1.15.4",
"tlds": "^1.209.0"
"ip-regex": "^4.3.0",
"re2": "1.15.4",
"tlds": "^1.217.0"
},
"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.4",
"@babel/preset-env": "^7.11.0",
"@babel/cli": "^7.12.16",
"@babel/core": "^7.12.16",
"@babel/preset-env": "^7.12.16",
"@commitlint/cli": "latest",
"@commitlint/config-conventional": "latest",
"ava": "latest",
"babelify": "^10.0.0",
"browserify": "^16.5.2",
"browserify": "^17.0.0",
"codecov": "latest",
"cross-env": "latest",
"eslint": "latest",
"eslint-config-xo-lass": "latest",
"eslint-plugin-compat": "^3.8.0",
"eslint-plugin-compat": "^3.9.0",
"eslint-plugin-node": "^11.1.0",
"fixpack": "latest",
"husky": "latest",
Expand Down
21 changes: 9 additions & 12 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,13 @@ test('match URLs in text', (t) => {
[and another](https://another.example.com) and
`;

t.deepEqual(
[
'//bar.net/?q=Query',
'//dolor.sit',
'http://example.com',
'http://example.com/with-path',
'https://another.example.com'
],
fixture.match(urlRegex({ strict: true }))
);
t.deepEqual(fixture.match(urlRegex({ strict: true })), [
'//bar.net/?q=Query',
'//dolor.sit',
'http://example.com',
'http://example.com/with-path',
'https://another.example.com'
]);
});

for (const x of [
Expand Down Expand Up @@ -264,8 +261,8 @@ test('opt out of matching basic auth', (t) => {

// Strict matches none because auth always breaks the url
t.is(
null,
textFixture.match(urlRegex({ exact: false, strict: true, auth: false }))
textFixture.match(urlRegex({ exact: false, strict: true, auth: false })),
null
);

// Non-strict will only match domain:port/path as auth separates the protocol
Expand Down
Loading

0 comments on commit 2ac0cdc

Please sign in to comment.