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
@@ -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(() => {