mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-11 16:58:25 +03:00
Change deepequal to hashcompare
This commit is contained in:
@@ -157,6 +157,18 @@ router.patch(
|
||||
return "Invalid URL.";
|
||||
}
|
||||
|
||||
return true;
|
||||
}),
|
||||
redirectUri: optNull((self) => {
|
||||
if (typeof self !== "string") {
|
||||
return "Expected a string.";
|
||||
}
|
||||
const res = IsValidURL(self);
|
||||
|
||||
if (!res) {
|
||||
return "Invalid URL.";
|
||||
}
|
||||
|
||||
return true;
|
||||
}),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user