fix var colors

This commit is contained in:
MeexReay 2025-03-21 23:17:51 +03:00
parent fb56e5c06f
commit cba7ad7609

View File

@ -108,7 +108,7 @@ function makeColorCodesPrintable(input) {
function convertColorCodes(input) {
return input.replace(/\$#([0-9a-fA-F]{6})/g, '<span style="color: #$1">')
.replace(/\$##([0-9a-fA-F]{6})/g, '$$#$1')
.replace(/\$([A-Z_]+)--/g, '<span style="color: --$1">')
.replace(/\$([A-Z_]+)--/g, '<span style="color: var(--$1)">')
.replace(/\$#([A-Z_]+)--/g, '$$$1--')
.replace(/\$reset/g, '</span>')
.replace(/\$#reset/g, '$$reset');