mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 09:42:21 +00:00
Catch a recovery phrase quoted »like this« or ‚like this‘
Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
1 parent
bf1e313301
commit
b363f9b09b
2 files changed
+2
-1
No files matched your search
@@ -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)) {
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user