Shinji_Zl's WorkBuddy account is named 他. With account names hidden,
Usage → Overview and the quota cards still showed it: noteAccount and
names() kept only names of two characters or more, and mask() skipped
text nodes shorter than two.
A name of one character is now kept when it is a single letter past
ASCII (nameLike: a CJK name like 他), never one ASCII letter or digit,
which would mask every "a" or "1" on the page. Such a name is masked
only where it stands apart: next to another letter or digit of any
script it is part of a word (inWord: 其他 keeps its 他). mask() now
looks at text nodes of any length.
The core scripts' budget is kept, not raised: the new code is written
short, and three of the masking block's comments are cut to what they
say (the stand-in letters, names(), the accounts shown).
Run (mote, on e7185daeb):
- the GUI files that mask names or show account names
(--test-concurrency=4): 674 tests, 651 pass. 22 reds are
usage-agents-hide, which fails the same 22 alone at origin/main
f849ccced (#2276, #3414). One is account-mask chromium zh's click on
#usageMask timing out (#3951, same on main in a whole run); the file
passes 5 of 5 runs alone here and 5 of 5 at origin/main.
- broken by hand: app.js as on main, account-mask 0 of 4; the inWord
line taken out, 0 of 4 (the 他 of 其他 is masked, 4 names not 3).
- TestCoreScriptBudget (go test ./internal/gui -run Budget) and
i18n-keys: ok.
Not tried: the whole GUI suite (14k tests, ~200 known reds), and the
reporter's real WorkBuddy account.