mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-30 13:24:19 +00:00
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 @@ mark2_background
|
|||
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…
Add table
Add a link
Reference in a new issue