mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-24 08:01:56 -05:00
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -46,7 +46,7 @@ const STRIPE_ERROR_CODES = defineErrorCodes({
|
||||
});
|
||||
|
||||
const getUrl = (ctx: GenericEndpointContext, url: string) => {
|
||||
if (url.match(/^[a-zA-Z][a-zA-Z0-9+\-.]*:/)) {
|
||||
if (/^[a-zA-Z][a-zA-Z0-9+\-.]*:/.test(url)) {
|
||||
return url;
|
||||
}
|
||||
return `${ctx.context.options.baseURL}${
|
||||
|
||||
Reference in New Issue
Block a user