Module:rad-stem/templates: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 2,495: Line 2,495:
pronoun = pronoun .. prep
pronoun = pronoun .. prep
for _, regex in ipairs(regex_list) do
for _, regex in ipairs(regex_list) do
if mw.ustring.match(pronoun, regex .. prep .. "$") then
if mw.ustring.match(pronoun, regex .. prep .. "$") and not (mw.ustring.match(regex, "^u") and mw.ustring.match(pronoun, "a" .. regex .. prep .. "$")) then
pronoun = mw.ustring.gsub(pronoun, regex .. prep .. "$", args[regex])
pronoun = mw.ustring.gsub(pronoun, regex .. prep .. "$", args[regex])
break
break

Navigation menu