Make the regex for commenting settings more robust
This commit is contained in:
parent
b25ea9c863
commit
15e0b42f04
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ def patch_conf(raw: str, theme_name: str) -> str:
|
|||
mark3_foreground
|
||||
mark3_background
|
||||
'''.splitlines()))
|
||||
pat = f'^({"|".join(color_conf_items)})'
|
||||
pat = fr'^\s*({"|".join(color_conf_items)})\b'
|
||||
return re.sub(pat, r'# \1', nraw, flags=re.MULTILINE)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue