diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index a3dba04..7d60f92 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -1033,7 +1033,8 @@ func GeneratePassphrase(text string, n int) []string { passphrases = append(passphrases, strings.Join(lowerCAPSWords, " ")) passphrases = append(passphrases, strings.Join(lowerCAPSWords, "")) passphrases = append(passphrases, strings.ReplaceAll(text, " ", "")) - passphrases = append(passphrases, strings.ReplaceAll(titleCaseWords, " ", "")) + passphrases = append(passphrases, titleCaseWords) + passphrases = append(passphrases, turkTitleCaseWords) return passphrases } diff --git a/pkg/utils/utils_test.go b/pkg/utils/utils_test.go index 71a848c..fcae6f2 100644 --- a/pkg/utils/utils_test.go +++ b/pkg/utils/utils_test.go @@ -674,7 +674,7 @@ func TestGeneratePassphrase(t *testing.T) { // Define test cases testCases := TestCases{ - {"I <3 you", 3, []string{"I <3 YOU", "I-<3-YOU", "I-<3-You", "I<3YOU", "I<3YOU", "I<3You", "I<3You", "I<3you", "I_<3_YOU", "I_<3_You", "i <3 you", "i<3you"}}, + {"I <3 you", 3, []string{"I<3You", "I<3YOU", "I-<3-You", "I-<3-YOU", "I_<3_You", "I_<3_YOU", "i <3 you", "i<3you", "I <3 YOU", "I<3YOU", "I<3you", "I <3 You", "I <3 YOU"}}, } // Run test cases