Skip to content

Commit

Permalink
fix: restrict Fountain "character" token's accented Latin chars to "c…
Browse files Browse the repository at this point in the history
…apital" letters in Latin-1 supplement (#28)
  • Loading branch information
chuangcaleb committed Jan 25, 2024
1 parent 92e9922 commit 06870f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 06870f7

Please sign in to comment.