We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e537e7 commit ac05b45Copy full SHA for ac05b45
WhatsAppA11yFixes.user.js
@@ -214,10 +214,10 @@ const DYNAMIC_TWEAKS = [
214
// Remove phone numbers for unknown contacts. These have a slightly different
215
// format for normal chats and group chats.
216
const m = el.ariaLabel.match(
217
- /^(?:Maybe (.*? ))?\+\d{1,2} [\d ]+ (.*)$/s
+ /^(?:[^\d ]+ (.*? ))?\+\d{1,3} [\d ]+ (.*)$/s
218
);
219
if (m) {
220
- el.ariaLabel = `Maybe ${m[1] || ""} ${m[2]}`;
+ el.ariaLabel = `~ ${m[1] || ""} ${m[2]}`;
221
}
222
}},
223
];
0 commit comments