Changes
mLine 467:
Line 467:
+
+
+
+
+
+
+
+
+
+
+
Protected Module:String: Widely used ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
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