mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 19:21:38 +02:00
Make the regex for commenting settings more robust
This commit is contained in:
@@ -67,7 +67,7 @@ mark2_background
|
|||||||
mark3_foreground
|
mark3_foreground
|
||||||
mark3_background
|
mark3_background
|
||||||
'''.splitlines()))
|
'''.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)
|
return re.sub(pat, r'# \1', nraw, flags=re.MULTILINE)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user