diff --git a/src/search/placeSuggestions.js b/src/search/placeSuggestions.js index 6438b804e5..58d2de1c22 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 c310dcfd60..dbaa7557e2 100644 --- a/src/search/placeSuggestions.test.mjs +++ b/src/search/placeSuggestions.test.mjs @@ -474,6 +474,8 @@ test('spelled-out emails, addresses, phrases, codes and short phone numbers stay 'gate code aBcD - thanks,', 'gate code aBcD – thanks', '"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',