Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Add missing charset for numbers in TrackLink regex. (#2404)

Fabian Schneebauera85e467cd926
diff --git a/models/models.go b/models/models.go
index 42a1ef00..d122433a 100644
--- a/models/models.go
+++ b/models/models.go
@@ -109,7 +109,7 @@ var regTplFuncs = []regTplFunc{
// The regex matches all characters that may occur in an URL
// (see "2. Characters" in RFC3986: https://www.ietf.org/rfc/rfc3986.txt)
{
- regExp: regexp.MustCompile(`(https?://[\p{L}_\-\.~!#$&'()*+,/:;=?@\[\]]*)@TrackLink`),
+ regExp: regexp.MustCompile(`(https?://[\p{L}\p{N}_\-\.~!#$&'()*+,/:;=?@\[\]]*)@TrackLink`),
replace: `{{ TrackLink "$1" . }}`,
},