Skip to content

Commit 31506f1

Browse files
committed
vimhelp: Escape regex pattern properly to avoid syntax warning
1 parent 9bb296a commit 31506f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vimhelp/vimhelp/vimh2h.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def to_html(self, filename, contents):
361361

362362
# Custom MacVim filters
363363
if filename == "gui_mac.txt":
364-
if re.fullmatch("\s*MACVIM REFERENCE MANUAL\s*", line) != None:
364+
if re.fullmatch("\\s*MACVIM REFERENCE MANUAL\\s*", line) != None:
365365
out.append("<h1><img src=MacVim.png width=64px>\nMacVim Reference Manual</h1>")
366366
line = ""
367367

0 commit comments

Comments
 (0)