Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(mobile): 完整转义分享样式断言的正则字符
Dashb5723b3dd97c
diff --git a/apps/mobile/src/__tests__/conversationShareWebViewHtml.test.ts b/apps/mobile/src/__tests__/conversationShareWebViewHtml.test.tsindex c6ea13aafe..7f0904596d 100644--- a/apps/mobile/src/__tests__/conversationShareWebViewHtml.test.ts+++ b/apps/mobile/src/__tests__/conversationShareWebViewHtml.test.ts@@ -616,7 +616,7 @@ describe("buildConversationShareHtml 与聊天气泡同款渲染", () => {],});const css = (selector: string) =>- html.match(new RegExp(`\\n\\s*${selector.replace(/\./g, "\\.")} \\{([^}]*)\\}`))?.[1] ?? "";+ html.match(new RegExp(`\\n\\s*${selector.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")} \\{([^}]*)\\}`))?.[1] ?? "";it("用户气泡用细描边与普通边框色,不用次要文字色的粗框", () => {expect(css(".share-bubble-user")).toContain("border: 0.5px solid #dddddd");