Skip to content

Commit 6e3ff2c

Browse files
committed
feat(tpl): add extra escape char for formatting filename
1 parent 482a047 commit 6e3ff2c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/tpl/util/formatFilename.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ import (
66
)
77

88
var filenameReplacer = strings.NewReplacer(
9-
"\r", "<em>\\r</em>",
10-
"\n", "<em>\\n</em>",
119
"\a", "<em>\\a</em>",
10+
"\b", "<em>\\b</em>",
11+
"\f", "<em>\\f</em>",
12+
"\n", "<em>\\n</em>",
13+
"\r", "<em>\\r</em>",
14+
"\t", "<em>\\t</em>",
1215
"\v", "<em>\\v</em>",
1316
)
1417

0 commit comments

Comments
 (0)