Module:auto cat: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 24: Line 24:
local function replace(str, gsubs)
local function replace(str, gsubs)
     local res = str
     local res = str
     for from, to in gsubs do
     for from, to in pairs(gsubs) do
     res = tostring(mw.ustring.gsub(res, from, to))
     res = tostring(mw.ustring.gsub(res, from, to))
     end
     end
Line 112: Line 112:
         end
         end
     end
     end
    mw.logObject(out_patterns)
     return out_patterns
     return out_patterns
end
end

Navigation menu