Changes

Jump to navigation Jump to search
153 bytes removed ,  15:28, 30 June 2016
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
Bureaucrats, private-view, public-view, Administrators
97,692

edits

Navigation menu