Skip to content

Commit a85e467

Browse files
0xdebFabian Schneebauer
andauthored
Add missing charset for numbers in TrackLink regex. (#2404)
Co-authored-by: Fabian Schneebauer <fabian@fs-it.org>
1 parent fb52700 commit a85e467

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
@@ -109,7 +109,7 @@ var regTplFuncs = []regTplFunc{
109109
// The regex matches all characters that may occur in an URL
110110
// (see "2. Characters" in RFC3986: https://www.ietf.org/rfc/rfc3986.txt)
111111
{
112-
regExp: regexp.MustCompile(`(https?://[\p{L}_\-\.~!#$&'()*+,/:;=?@\[\]]*)@TrackLink`),
112+
regExp: regexp.MustCompile(`(https?://[\p{L}\p{N}_\-\.~!#$&'()*+,/:;=?@\[\]]*)@TrackLink`),
113113
replace: `{{ TrackLink "$1" . }}`,
114114
},
115115

0 commit comments

Comments
 (0)