Skip to content

Commit

Permalink
Update defaults for passphrases
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWnuk committed Oct 2, 2024
1 parent 8cd988d commit 1254d6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1254d6f

Please sign in to comment.