mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-23 22:26:56 +00:00
remove valid hostname check for URLs
This commit is contained in:
@@ -152,7 +152,6 @@ function validateRecordValues(t, data, file) {
|
||||
|
||||
// Check for self-referencing redirects
|
||||
const urlHost = new URL(value).host;
|
||||
t.true(isValidHostname(urlHost), `${file}: Invalid URL hostname for ${key}`);
|
||||
t.false(urlHost === `${subdomain}.is-a.dev`, `${file}: ${key} cannot point to itself`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user