mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-03 22:02:08 +03:00
fix(tests): align maskEmail test assertions with new less-aggressive masking behavior
Updated mask-email.test.mjs and model-sync-route.test.mjs to match the revised maskEmail function that preserves full domain names for account differentiation (die********@gmail.com vs old di*********@g****.com).
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* to prevent identity exposure in dashboards and logs.
|
||||
*
|
||||
* @example
|
||||
* maskEmail("diego.souza@gmail.com") // "di*********@g****.com"
|
||||
* maskEmail("diego.souza@gmail.com") // "die********@gmail.com"
|
||||
* maskEmail("a@b.com") // "a@b.com" (too short to mask)
|
||||
*/
|
||||
export function maskEmail(email: string | null | undefined, visibleChars = 3): string {
|
||||
|
||||
Reference in New Issue
Block a user