all repos — searchix @ 4fa3ceb5ac040a84f2da405c46e4af1231d22f17

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: improve handling of long option descriptions

Alan Pearce
commit

4fa3ceb5ac040a84f2da405c46e4af1231d22f17

parent

1c56ff7fc392f2d7992e53add5bd76bc8855d4a6

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M internal/components/markdown.gointernal/components/markdown.go
@@ -4,7 +4,7 @@ import (
"regexp" ) -var firstSentenceRegexp = regexp.MustCompile(`^.*?\.[[:space:]]`) +var firstSentenceRegexp = regexp.MustCompile(`^.+?(\.[[:space:]]|:\n)`) func firstSentence[T ~string](text T) T { if fs := firstSentenceRegexp.FindString(string(text)); fs != "" {