Skip to content

Commit 350a15b

Browse files
Update cleaner.go
Co-authored-by: Sarah Vessels <[email protected]>
1 parent dceeba4 commit 350a15b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/generate/cleaner.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ func SplitLines(text string) []string {
3131
return lines
3232
}
3333

34-
func UnBacket(text string) string {
34+
// Unbracket removes leading and trailing square brackets.
35+
func Unbracket(text string) string {
3536
// Remove leading and trailing square brackets
3637
if strings.HasPrefix(text, "[") && strings.HasSuffix(text, "]") {
3738
text = strings.TrimPrefix(text, "[")

0 commit comments

Comments
 (0)