Skip to content

Commit

Permalink
add test for strict match for has protocol with whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 24, 2023
1 parent a621f39 commit 2e93dfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/utilities.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ describe("hasProtocol", () => {
{ input: "javascript:alert(true)", out: [true, false, true] },
{ input: " javascript:alert(true)", out: [true, false, true] },
{ input: "\0javascript:alert(true)", out: [true, false, true] },
{ input: "\0https://", out: [true, true, true] },
{ input: "tel:123456", out: [true, false, true] },
{ input: "mailto:support@example.com", out: [true, false, true] },

Expand Down

0 comments on commit 2e93dfb

Please sign in to comment.