ColoredText: case-insensitive color-code regex so uppercase |c/|r titles render
Build check / build (push) Has been cancelled
Build check / build (push) Has been cancelled
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@ type Run = { text: string; color?: string };
|
||||
|
||||
const tokenize = (s: string): Run[] => {
|
||||
const runs: Run[] = [];
|
||||
const re = /\|c([0-9a-fA-F]{8})|\|r/g;
|
||||
const re = /\|c([0-9a-fA-F]{8})|\|r/gi;
|
||||
let i = 0;
|
||||
let color: string | undefined;
|
||||
let m: RegExpExecArray | null;
|
||||
|
||||
Reference in New Issue
Block a user