name-color: nuclear option: remove /* and */
This commit is contained in:
parent
7c594f8030
commit
d9ced1a44c
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue