Modul:String: Unterschied zwischen den Versionen

add str.replace_plain
(add str.replace_plain)
(add str.replace_plain)
Zeile 177: Zeile 177:


     if firstonly == 'true' or firstonly == 'yes' or firstonly == '1' then
     if firstonly == 'true' or firstonly == 'yes' or firstonly == '1' then
         local result = gsub( source_str, pattern_plain, replace_plain, 1 );
         local result = mw.ustring.gsub( source_str, pattern_plain, replace_plain, 1 );
     else
     else
         local result = gsub( source_str, pattern_plain, replace_plain, n );
         local result = mw.ustring.gsub( source_str, pattern_plain, replace_plain, n );
     end
     end


Anonymer Benutzer