Module:languages៖ ភាពខុសគ្នារវាងកំណែនានា

ខ្លឹមសារដែលបានលុបចោល ខ្លឹមសារដែលបានសរសេរបន្ថែម
No edit summary
No edit summary
បន្ទាត់ទី១៧៤៖
-- Remove initial hyphens and *
namelocal hyphens_regex = mw.ustring.gsub(name, "^[-־ـ*]+(.)",
name = mw.ustring.gsub(name, hyphens_regex, "%1")
"%1")
 
-- Remove parentheses, as long as they are either preceded or followed by something
name = mw.ustring.gsub(name, "(.)[()]+", "%1")