Skip to content

Commit

Permalink
update deps, adjust vitest config
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Mar 26, 2024
1 parent 5a7c681 commit 1f362fe
Show file tree
Hide file tree
Showing 4 changed files with 1,080 additions and 614 deletions.
2 changes: 1 addition & 1 deletion index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ const v6negative = [
"':10.0.0./641",
];

test("test", () => {
test("correctness", () => {
for (const string of v4positive) expect(cidrRegex({exact: true}).test(string)).toEqual(true);
for (const string of v4positive) expect((cidrRegex().exec(`foo ${string} bar`) || [])[0]).toEqual(string);
for (const string of v4negative) expect(cidrRegex({exact: true}).test(string)).toEqual(false);
Expand Down
Loading

0 comments on commit 1f362fe

Please sign in to comment.