Skip to content

Commit 3a1392d

Browse files
Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 9896d77 commit 3a1392d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/chrome/src/agent/adapters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15945,7 +15945,7 @@ const ADAPTERS = [
1594515945
{
1594615946
name: 'wechat-official-account',
1594715947
category: 'general',
15948-
matches: (url) => /^https?:\/\/mp\.weixin\.qq\.com\//.test(url),
15948+
matches: (url) => /^https?:\/\/mp\.weixin\.qq\.com\/(?:$|[?#]|cgi-bin(?:[/?#]|$))/.test(url),
1594915949
notes: `
1595015950
- Confirm the current official account name in the top bar before editing or publishing; an old tab or session-token URL may belong to a different account.
1595115951
- The article editor has separate title and body editable regions. The body uses ProseMirror/contenteditable; focus each region separately and verify its text after writing so the title is not inserted into the body or vice versa.

src/firefox/src/agent/adapters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15943,7 +15943,7 @@ const ADAPTERS = [
1594315943
{
1594415944
name: 'wechat-official-account',
1594515945
category: 'general',
15946-
matches: (url) => /^https?:\/\/mp\.weixin\.qq\.com\//.test(url),
15946+
matches: (url) => /^https?:\/\/mp\.weixin\.qq\.com\/(?:$|[?#]|cgi-bin(?:[/?#]|$))/.test(url),
1594715947
notes: `
1594815948
- Confirm the current official account name in the top bar before editing or publishing; an old tab or session-token URL may belong to a different account.
1594915949
- The article editor has separate title and body editable regions. The body uses ProseMirror/contenteditable; focus each region separately and verify its text after writing so the title is not inserted into the body or vice versa.

0 commit comments

Comments
 (0)