mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
c0d15a2897
Before this fix, strings.Truncate would erroneously re-include attributes from the opening tag in the closing tag when closing formatted html, due to a bug in how tagnames were extracted from the regex capture group for html tags used in `truncate.go`. This change ensures that only the tagname is retained and all attributes are discarded when storing the tags for closing them later. Fixes #10399 |
||
---|---|---|
.. | ||
init.go | ||
regexp.go | ||
regexp_test.go | ||
strings.go | ||
strings_test.go | ||
truncate.go | ||
truncate_test.go |