Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(rtl): write the isolate marks of flowText as escapes, not as raw characters

Maurice796f39fe1fbc
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';