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

A raw FSI or PDI in the source reads as nothing and is what Sonar's
bidirectional character rule (S6389) flags. The strings are the same.
This commit is contained in:
Maurice
2026-11-08 01:40:30 +00:00
parent ee9cbce23d
commit 796f39fe1f
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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';