fix: remove trailing full-stop from single-sentence descriptions
1 file changed, 1 insertion(+), 1 deletion(-)
changed files
M internal/components/markdown.go → internal/components/markdown.go
@@ -4,7 +4,7 @@ import ( "regexp" ) -var firstSentenceRegexp = regexp.MustCompile(`^((?s).+?)(?:\.[[:space:]]*[[:upper:]])`) +var firstSentenceRegexp = regexp.MustCompile(`^((?s).+?)(?:\.[[:space:]]*[[:upper:]]|.$)`) func firstSentence[T ~string](text T) T { if fs := firstSentenceRegexp.FindStringSubmatch(string(text)); len(fs) > 0 && fs[1] != "" {