Open main menu
Home
Random
Log in
Settings
Donate
About The TTSCpedia
Disclaimers
The TTSCpedia
Search
Changes
← Older edit
Newer edit →
Module:String
(view source)
Revision as of 01:13, 7 February 2019
153 bytes removed
,
5 years ago
m
1 revision imported
Line 467:
Line 467:
function str._escapePattern( pattern_str )
function str._escapePattern( pattern_str )
return mw.ustring.gsub( pattern_str, "([%(%)%.%%%+%-%*%?%[%^%$%]])", "%%%1" );
return mw.ustring.gsub( pattern_str, "([%(%)%.%%%+%-%*%?%[%^%$%]])", "%%%1" );
−
end
−
−
--[[
−
check if string is a number
−
]]
−
function str.isNumber( frame )
−
if not tonumber( frame.args[1] ) then
−
return 0
−
else
−
return 1
−
end
end
end
return str
return str
TheROFL98
Bureaucrats
,
Chat moderators
,
Comment administrators
,
Interface administrators
,
Oversighters
,
Staff
,
Administrators
,
Widget editors
604
edits