Changes

Jump to: navigation, search

Module:String

153 bytes removed, 5 years ago
Changed protection level for "[[Module:String]]": request at RfP ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))
function str._escapePattern( pattern_str )
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
return str
Anonymous user