Module:RemoveBullshit

local p = {}

function p.name local str = mw.getCurrentFrame.args[1] --local str = "main (asdfasdfasölj) {sdfasdfjösaldföl} [sadflasdjföle]" mw.logObject(str) local strNew = str:gsub("&#8203;",""):gsub("&shy;", ""):gsub("­",""):gsub(" ?%{.*%} ?",""):gsub(" ?%[.*%] ?","") mw.logObject(strNew) return strNew end

function p.rest local str = mw.getCurrentFrame.args[1] --local str = "main (asdfasdfasölj) {sdfasdfjösaldföl} [sadflasdjföle]" mw.logObject(str) local strNew = str:gsub("&#8203;",""):gsub("&shy;", ""):gsub("­",""):gsub(" ?%{.*%} ?",""):gsub(" ?%[.*%] ?",""):gsub(" -%(.*%) -","") mw.logObject(strNew) return strNew end return p