Skip to content

Commit 4da91a0

Browse files
committed
Fix broken TrackLink regexp. Closes #2448.
1 parent 03285ab commit 4da91a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ var regTplFuncs = []regTplFunc{
101101
// and substituting it with {{ Track "http://link.com" . }} (the dot context)
102102
// before compilation. This is to make linking easier for users.
103103
{
104-
regExp: regexp.MustCompile(`{{(\\s+)?TrackLink(\\s+)?(.+?)(\\s+)?}}`),
104+
regExp: regexp.MustCompile(`{{(\s+)?TrackLink(\s+)?(.+?)(\s+)?}}`),
105105
replace: `{{ TrackLink $3 . }}`,
106106
},
107107

0 commit comments

Comments
 (0)