From b363f9b09bf9a71333707f5599b5a080c3aacbb7 Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Wed, 18 Nov 2026 20:58:22 -0800 Subject: [PATCH] =?UTF-8?q?Catch=20a=20recovery=20phrase=20quoted=20=C2=BB?= =?UTF-8?q?like=20this=C2=AB=20or=20=E2=80=9Alike=20this=E2=80=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Manjunath Paparaju --- src/search/placeSuggestions.js | 2 +- src/search/placeSuggestions.test.mjs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/search/placeSuggestions.js b/src/search/placeSuggestions.js index 58d2de1c22..02e37b7bcc 100644 --- a/src/search/placeSuggestions.js +++ b/src/search/placeSuggestions.js @@ -230,7 +230,7 @@ function privacyReason(text) { // Numbered ("1.", "(1)", "1:", "#1", "[1]") or quoted words; "and" // before the last word joins it. const word = token - .replace(/^["'“”„«‹‘’([{<#]*\d*[)\]:]?["'“”„«‹‘’([{<]*/, '') + .replace(/^["'“”„‚«»‹›‘’([{<#]*\d*[)\]:]?["'“”„‚«»‹›‘’([{<]*/, '') .replace(/(?<=[a-z])[^a-z]+$/, ''); if (!word || word === 'and') continue; if (!isBip39Word(word)) { diff --git a/src/search/placeSuggestions.test.mjs b/src/search/placeSuggestions.test.mjs index dbaa7557e2..4df112e6ae 100644 --- a/src/search/placeSuggestions.test.mjs +++ b/src/search/placeSuggestions.test.mjs @@ -476,6 +476,7 @@ test('spelled-out emails, addresses, phrases, codes and short phone numbers stay '"abandon ability able about above absent absorb abstract absurd abuse access accident"', '“abandon ability able about above absent absorb abstract absurd abuse access accident”', '«abandon ability able about above absent absorb abstract absurd abuse access accident»', + '»abandon ability able about above absent absorb abstract absurd abuse access accident«', 'abandon-ability-able-about-above-absent-absorb-abstract-absurd-abuse-access-accident', '#1 abandon #2 ability #3 able #4 about #5 above #6 absent #7 absorb #8 abstract #9 absurd #10 abuse #11 access #12 accident', '(1) abandon (2) ability (3) able (4) about (5) above (6) absent (7) absorb (8) abstract (9) absurd (10) abuse (11) access (12) accident',