From 942c43a63654b816cdab67b96d5d540859af28c0 Mon Sep 17 00:00:00 2001 From: Vasiliy Vasilyuk Date: Wed, 11 Oct 2023 20:26:28 +0300 Subject: [PATCH] Replace 'Dash' with 'Hyphen' That's a more correct title. --- testingpg/testingpg.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testingpg/testingpg.go b/testingpg/testingpg.go index 7484f27..637cdc1 100644 --- a/testingpg/testingpg.go +++ b/testingpg/testingpg.go @@ -124,16 +124,16 @@ func newUniqueHumanReadableDatabaseName(t TestingT) string { uid := genUnique8BytesID(t) maxHumanReadableLenBytes := maxIdentifierLengthBytes - len(uid) - lastSymbolIsDash := false + lastSymbolIsHyphen := false for _, r := range t.Name() { if unicode.IsLetter(r) || unicode.IsNumber(r) { output.WriteRune(r) - lastSymbolIsDash = false + lastSymbolIsHyphen = false } else { - if !lastSymbolIsDash { + if !lastSymbolIsHyphen { output.WriteRune('-') } - lastSymbolIsDash = true + lastSymbolIsHyphen = true } if output.Len() >= maxHumanReadableLenBytes { break