Module:Deranize: Difference between revisions

clean up Derani nbsp
m (clean :s)
(clean up Derani nbsp)
Line 70: Line 70:
   ["]"] = "󱛙",
   ["]"] = "󱛙",
   ["*"] = " 󱛚",
   ["*"] = " 󱛚",
   ["_"] = "󱛛",
   ["_"] = "󱛛", -- compatibility nbsp
}
}


Line 139: Line 139:
   assert(frame.args[1] ~= nil and frame.args[2] == nil, "This function requires exactly one argument")
   assert(frame.args[1] ~= nil and frame.args[2] == nil, "This function requires exactly one argument")
   local cleaned = u.gsub(frame.args[1], "[:%[%]*]", "")
   local cleaned = u.gsub(frame.args[1], "[:%[%]*]", "")
  cleaned = u.gsub(frame.args[1], "_", "\xa0")
   return cleaned
   return cleaned
end
end


return {deranize = deranize, clean = clean}
return {deranize = deranize, clean = clean}