feat: 更新密码页面识别逻辑,支持手机号注册和登录路径,并添加相关测试用例

This commit is contained in:
QLHazyCoder
2026-05-05 03:03:19 +08:00
parent 75bb53cec1
commit 1973f5a898
6 changed files with 192 additions and 7 deletions
+1 -1
View File
@@ -72,7 +72,7 @@
const parsed = parseUrlSafely(rawUrl);
if (!parsed) return false;
return isSignupPageHost(parsed.hostname)
&& /\/create-account\/password(?:[/?#]|$)/i.test(parsed.pathname || '');
&& /\/(?:create-account|log-in)\/password(?:[/?#]|$)/i.test(parsed.pathname || '');
}
function isSignupEmailVerificationPageUrl(rawUrl) {