יחידה:String: הבדלים בין גרסאות בדף
+Unit tests for this module are available at Module:String/tests. |
fix pattern escape in replace function |
||
| שורה 259: | שורה 259: | ||
if plain then | if plain then | ||
pattern = str._escapePattern( pattern ); | pattern = str._escapePattern( pattern ); | ||
replace = | replace = mw.ustring.gsub( replace, "%%", "%%%%" ); --Only need to escape replacement sequences. | ||
end | end | ||