Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/plugins/rehype/autocolor.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const regexColorTag = /%([0-9a-zA-z])(.+?)%/g;
// Values can be strings, numbers, null, true, false, or scriptors
// This will also match <key>: { or <key>: [ but will NOT include the { or [ in the match to be colorized
const regexKvp =
/(\w+|".*?")[ ]*:[ ]*(?:(".*?"|\d+(?:\.\d*)?|null|true|false|#s\.\w+\.\w+)|(?=\{|\[))/g;
/(\w+|".*?")[ ]*:[ ]*(?:(".*?"|-?\d+(?:\.\d*)?|null|true|false|#s\.\w+\.\w+)|(?=\{|\[))/g;

// Matches GC strings, e.g. 1Q1T1B1M1K1GC
// Explicitly does NOT match the text GC on its own
Expand Down
Loading