From 06870f79a20093cb99faa04de3ababbdb5cef682 Mon Sep 17 00:00:00 2001 From: chuangcaleb Date: Thu, 25 Jan 2024 12:03:27 +0800 Subject: [PATCH] fix: restrict Fountain "character" token's accented Latin chars to "capital" letters in Latin-1 supplement (#28) --- src/editor/consts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/consts.ts b/src/editor/consts.ts index 9baf45f..af16378 100644 --- a/src/editor/consts.ts +++ b/src/editor/consts.ts @@ -31,7 +31,7 @@ export const LINE_TOKENS = [ { id: n.character, regex: - /^[^\S\r\n]*(?=.*[A-Z\u00C0-\u024F])[A-Z0-9\u00C0-\u024F \t'.-]+\s?(\(.*\))?$|@.*$/, + /^[^\S\r\n]*(?=.*[A-Z\u00C0-\u00DEF])[A-Z0-9\u00C0-\u00DEF \t'.-]+\s?(\(.*\))?$|@.*$/, }, { id: n.dialogue,