Create l.luihh.is-a.dev

Create l.luihh.is-a.dev
This commit is contained in:
Luihh
2025-01-13 00:53:34 -05:00
committed by GitHub
3 changed files with 24 additions and 5 deletions
+20
View File
@@ -0,0 +1,20 @@
{
"owner": {
"username": "luihh",
"email": "luihh@proton.me"
},
"record": {
"URL": "https://luihh.is-a.dev"
},
"redirect_config": {
"custom_paths": {
"/github": "https://github.com/luihh",
"/twitch": "https://www.twitch.tv/luihh23",
"/youtube": "https://www.youtube.com/@Luihh",
"/discord": "https://discord.com/users/481268875586174986",
"/steam": "https://steamcommunity.com/id/Luihh23",
"/paypal": "https://www.paypal.com/paypalme/luihhdev"
},
"redirect_paths": true
}
}
-1
View File
@@ -8,7 +8,6 @@
},
"redirect_config": {
"custom_paths": {
"/email": "mailto:will@hrsn.dev",
"/github": "https://github.com/wdhdev"
},
"redirect_paths": true
+4 -4
View File
@@ -186,10 +186,10 @@ function validateRecordValues(t, data, file) {
data.record.URL !== customRedirectURL,
`${urlMessage} should be different from the URL record at index ${idx}`
);
// t.true(
// customRedirectURL.startsWith("http://") || customRedirectURL.startsWith("https://"),
// `${urlMessage} must start with http:// or https:// at index ${idx}`
// );
t.true(
customRedirectURL.startsWith("http://") || customRedirectURL.startsWith("https://"),
`${urlMessage} must start with http:// or https:// at index ${idx}`
);
t.notThrows(() => new URL(customRedirectURL), `${urlMessage} contains an invalid URL at index ${idx}`);
// Check for self-referencing redirects