We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 466b761 commit 007fd54Copy full SHA for 007fd54
1 file changed
src/plugins/rehype/autocolor.js
@@ -39,7 +39,7 @@ const regexColorTag = /%([0-9a-zA-z])(.+?)%/g;
39
// Values can be strings, numbers, null, true, false, or scriptors
40
// This will also match <key>: { or <key>: [ but will NOT include the { or [ in the match to be colorized
41
const regexKvp =
42
- /(\w+|".*?")[ ]*:[ ]*(?:(".*?"|\d+(?:\.\d*)?|null|true|false|#s\.\w+\.\w+)|(?=\{|\[))/g;
+ /(\w+|".*?")[ ]*:[ ]*(?:(".*?"|-?\d+(?:\.\d*)?|null|true|false|#s\.\w+\.\w+)|(?=\{|\[))/g;
43
44
// Matches GC strings, e.g. 1Q1T1B1M1K1GC
45
// Explicitly does NOT match the text GC on its own
0 commit comments