From 00478c2ea8a21311c30b164f00fba8bc5c16b1dc Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 25 May 2024 14:06:57 +0100 Subject: [PATCH] weac/polyfill: add @module so it appears in the Lua API --- worldeditadditions_core/utils/strings/polyfill.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/worldeditadditions_core/utils/strings/polyfill.lua b/worldeditadditions_core/utils/strings/polyfill.lua index 110bd5c..2f2458f 100644 --- a/worldeditadditions_core/utils/strings/polyfill.lua +++ b/worldeditadditions_core/utils/strings/polyfill.lua @@ -5,6 +5,10 @@ A good rule of thumb is to ask "does Javascript have a built-in function for this?". If yes, then your implementation probably belongs here. ]]-- +--- +-- @module worldeditadditions_core + + --- Pads str to length len with char from right -- @source https://snipplr.com/view/13092/strlpad--pad-string-to-the-left local function str_padend(str, len, char)