diff --git a/client/src/utils/flowText.test.ts b/client/src/utils/flowText.test.ts index 5abc9c8b6..d826dbdba 100644 --- a/client/src/utils/flowText.test.ts +++ b/client/src/utils/flowText.test.ts @@ -7,8 +7,8 @@ import { afterEach, describe, expect, it } from 'vitest'; import { flowText, isRtlDocument } from './flowText'; -const FSI = '⁨'; -const PDI = '⁩'; +const FSI = '\u2068'; +const PDI = '\u2069'; describe('flowText', () => { afterEach(() => { diff --git a/client/src/utils/flowText.ts b/client/src/utils/flowText.ts index 5da24867c..354157ea9 100644 --- a/client/src/utils/flowText.ts +++ b/client/src/utils/flowText.ts @@ -9,8 +9,8 @@ * script the names are in, and the arrow points left, from the first name to * the second. A left-to-right UI gets the plain string. */ -const FSI = '⁨'; -const PDI = '⁩'; +const FSI = '\u2068'; +const PDI = '\u2069'; export function isRtlDocument(): boolean { return typeof document !== 'undefined' && document.documentElement.dir === 'rtl';