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 05:08, 10 November 2017
87 bytes added
,
7 years ago
no edit summary
Line 102:
Line 102:
function Utils.trim(s)
function Utils.trim(s)
return string.gsub(s, "^%s*(.-)%s*$", "%1")
return string.gsub(s, "^%s*(.-)%s*$", "%1")
+
end
+
+
function Utils.startsWith(s, ss)
+
return string.sub(s, 1, string.len(s)) == ss
end
end
がか
cssedit, gkautomate
7,064
edits