3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-20 07:05:44 +01:00

Answer the stability review: the parse layer strips a space or a tab, never more

This commit is contained in:
2026-08-28 00:01:35 +02:00
parent 087952555d
commit 6c2b5afbaa
7 changed files with 45 additions and 18 deletions
+1 -1
View File
@@ -111,6 +111,6 @@ export function startsEntityReference(text: string): boolean {
return anchoredEntityReference.test(text)
}
function trimSpace(text: string): string {
export function trimSpace(text: string): string {
return text.replace(/^[ \t]+|[ \t]+$/g, '')
}