mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore: upgrade deps (#10824)
This commit is contained in:
@@ -15,6 +15,7 @@ export const localeMapPredicate = z
|
||||
.strict();
|
||||
|
||||
export const refineURLPredicate = (allowedProtocols: string[]) => (value: string) => {
|
||||
// eslint-disable-next-line n/prefer-global/url
|
||||
const url = new URL(value);
|
||||
return allowedProtocols.includes(url.protocol);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user