Skip to content

Commit 64c4f59

Browse files
committed
chore(demo): skip masking em dash in E2E mode
1 parent 9582f9e commit 64c4f59

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/demo/src/utils/maskValue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const E2E_MODE = (import.meta.env.VITE_E2E_MODE ?? '').trim() === 'true';
44
const MASK_CHAR = '•';
55

66
export function maskValue(value: string): string {
7-
if (E2E_MODE) {
7+
if (E2E_MODE && value !== '—') {
88
return MASK_CHAR.repeat(value.length);
99
}
1010
return value;

examples/demo_pods/src/utils/maskValue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const E2E_MODE = (import.meta.env.VITE_E2E_MODE ?? '').trim() === 'true';
44
const MASK_CHAR = '•';
55

66
export function maskValue(value: string): string {
7-
if (E2E_MODE) {
7+
if (E2E_MODE && value !== '—') {
88
return MASK_CHAR.repeat(value.length);
99
}
1010
return value;

0 commit comments

Comments
 (0)