Skip to content

Commit

Permalink
dont allow nil str
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Oct 12, 2023
1 parent 044b44d commit 5f0a044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/tools/string.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ do
end

replace_dashes = function(str)
return str_replace_char(str or "", "-", "_")
return str_replace_char(str, "-", "_")
end
end
_M.replace_dashes = replace_dashes
Expand Down

0 comments on commit 5f0a044

Please sign in to comment.