We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09954f7 commit f3c4266Copy full SHA for f3c4266
src/mod.ts
@@ -54,7 +54,7 @@ export function findDomainNamesMatchingPattern(pattern: string): string[] {
54
(domainName) =>
55
// Domain names cannot start or end with a hyphen ("-")
56
domainName.at(0) !== "-" &&
57
- domainName.at(-1) !== "-" &&
+ domainName.at(domainName.indexOf(".") - 1) !== "-" &&
58
// Domain names cannot contain consecutive hyphens ("-")
59
!domainName.includes("--") &&
60
// Domain names must only consist of the 26 letters of the ISO basic Latin alphabet
0 commit comments