name-color: nuclear option: remove /* and */

This commit is contained in:
mehbark 2024-07-11 13:57:00 -04:00
parent 7c594f8030
commit d9ced1a44c

View file

@ -34,7 +34,7 @@ function parse_color(str: string): string | undefined {
const color = line.split("name-color:")[1]
.trim()
.slice(0, MAX_COLOR_LEN)
.replaceAll(/[;{}"']/g, "");
.replaceAll(/[;{}"']|\/\*|\*\//g, "");
if (is_valid_color(color)) {
return color;
} else {