Skip to content

Commit

Permalink
feat(company): Fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
qu35t-code committed Jun 18, 2024
1 parent 788d3ee commit 180dfac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/company.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,24 +166,24 @@ func generateCompanyPasslist(name string) []string {

wordlist = append(wordlist, baseWordlist...)

var transformedWordlist []string
transformedWordlist := wordlist
if includeEndSpecial {
transformedWordlist = append(transformedWordlist, generate.WithSpecialChars(wordlist)...)
}
if includeMixedCase {
transformedWordlist = append(transformedWordlist, generate.WithMixedCase(wordlist)...)
}
if includeLeetCode {
transformedWordlist = append(transformedWordlist, generate.WithLeetCode(wordlist)...)
}
if includeUppercase {
transformedWordlist = append(transformedWordlist, generate.WithUppercase(transformedWordlist)...)
transformedWordlist = append(transformedWordlist, generate.WithLeetCode(transformedWordlist)...)
}
if includeStartCaps {
transformedWordlist = append(transformedWordlist, generate.WithStartCaps(transformedWordlist)...)
}
if includeUppercase {
transformedWordlist = append(transformedWordlist, generate.WithUppercase(transformedWordlist)...)
}
if includeMask != "" {
transformedWordlist = append(transformedWordlist, generate.WithMask(wordlist, includeMask)...)
transformedWordlist = append(transformedWordlist, generate.WithMask(transformedWordlist, includeMask)...)
}

transformedWordlist = append(wordlist, transformedWordlist...)
Expand Down

0 comments on commit 180dfac

Please sign in to comment.