Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: replace all CRLF in email token (#10271)

fengmk2320875425c6b
diff --git a/tests/kit/src/utils/cloud.ts b/tests/kit/src/utils/cloud.ts
index 1e4658ef50..e94270cfb6 100644
--- a/tests/kit/src/utils/cloud.ts
+++ b/tests/kit/src/utils/cloud.ts
@@ -34,7 +34,7 @@ export async function getTokenFromLatestMailMessage<A extends Assertions>(
const emailContent = await getLatestMailMessage();
const tokenMatch = emailContent.Content.Body.match(tokenRegex);
const token = tokenMatch
- ? decodeURIComponent(tokenMatch[1].replace(/=\r\n/, ''))
+ ? decodeURIComponent(tokenMatch[1].replaceAll('=\r\n', ''))
: null;
test?.truthy(token);
return token;