Skip to content

Commit

Permalink
remove gsub for "="
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Jun 6, 2024
1 parent 4805bde commit 3e0a707
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kong/tools/rand.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ do
str = str:gsub("+", char(rand(65, 90))) -- A - Z
end

if str:find("=", 1, true) then
str = str:gsub("=", char(rand(97, 122))) -- a - z
end
-- no gsub for "=" since no padding

return str
end
Expand Down

0 comments on commit 3e0a707

Please sign in to comment.