You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Title casing currently fails to understand word boundaries properly, leading to various issues with hyphenation and unicode punctuation.
References
Current implementation of toTitle function is based on strings.Title, which has been deprecated since Go 1.18. Instead, golang.org/x/text/cases should be used:
Consul Template version
consul-template v0.29.6 (e4f5d583)
Expected behavior
Consider the following template:
Expected output:
Actual behavior
Template above yields the following:
Title casing currently fails to understand word boundaries properly, leading to various issues with hyphenation and unicode punctuation.
References
Current implementation of
toTitle
function is based onstrings.Title
, which has been deprecated since Go 1.18. Instead,golang.org/x/text/cases
should be used:The text was updated successfully, but these errors were encountered: