Use same lock values as mobile clients
[ProtonMail-WebClient.git] / packages / shared / lib / subscription / redirect.ts
blobe67b090c2a5845b3b21268c51316fe56cd0463a3
1 export const getRedirect = (redirect: string | null | undefined) => {
2     return redirect && /^(\/$|\/[^/]|proton(vpn|mail|drive)?:\/\/)/.test(redirect) ? redirect : undefined;
3 };