Skip to content

Commit

Permalink
fix #171
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed May 24, 2024
1 parent 09e2b9d commit 8fa73e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Website/src/util/createRegexURL.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function createRegexURL(domain: string | string[], tld: string | string[]): RegExp {
const parseDomain = Array.isArray(domain) ? domain.join("|") : domain;
const parseTld = Array.isArray(tld) ? tld.join("|") : tld;
return new RegExp(`(?:http(s)?:\\/\\/)?(www\\.)?(${parseDomain})\\.(${parseTld})(\\/[\w-]+)?`, "i");
return new RegExp(`(?:http(s)?:\\/\\/)?(www\\.)?(${parseDomain})\\.(${parseTld})(\\/[\\w-]+)?`, "i");
}

export { createRegexURL };

0 comments on commit 8fa73e3

Please sign in to comment.