Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Core
(view source)
Revision as of 17:30, 9 November 2017
76 bytes added
,
7 years ago
no edit summary
Line 98:
Line 98:
s = tostring(s) or ""
s = tostring(s) or ""
return #s < n and string.rep(c, n - #s) .. s or s
return #s < n and string.rep(c, n - #s) .. s or s
+
end
+
+
function Utils.trim(s)
+
return string.gsub(s, "^%s*(.-)%s*$", "%1")
end
end
がか
cssedit, gkautomate
7,064
edits