mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
chore: Escape backslashes in line strings in widgets generator
This commit is contained in:
parent
04a743fa4b
commit
88a14923b7
1 changed files with 3 additions and 0 deletions
|
|
@ -125,6 +125,9 @@ def formatMd():
|
|||
if line.startswith("#") and ".vue" in line and "\\.vue" in line:
|
||||
line = line.replace("\\.vue", ".vue")
|
||||
|
||||
# Escape the \ character
|
||||
line = line.replace("\\", "\\\\")
|
||||
|
||||
# Case not a param, keep the line as is
|
||||
if not line.startswith("*"):
|
||||
line_result.append(line)
|
||||
|
|
|
|||
Loading…
Reference in a new issue