Skip to content

Commit ddcb205

Browse files
committed
Fixed links broken by the period in IDs
Signed-off-by: Eddie Knight <knight@linux.com>
1 parent 05f502f commit ddcb205

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/pkg/baseline/template-functions.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ func addLinksTemplateFunction(lexicon []types.LexiconEntry, text string) string
7777
}
7878

7979
func asLinkTemplateFunction(text string) string {
80-
return "#" + strings.ToLower(strings.ReplaceAll(text, " ", "-"))
80+
return "#" + strings.ToLower(
81+
strings.ReplaceAll(
82+
strings.ReplaceAll(text, " ", "-"), ".", ""))
8183
}
8284

8385
// loop through maturityLevels

0 commit comments

Comments
 (0)