Difference between revisions of "Module:String"

Jump to navigation Jump to search
56 bytes added ,  04:54, 25 February 2013
fix pattern escape in replace function
>Dcoetzee
(+Unit tests for this module are available at Module:String/tests.)
>Dragons flight
(fix pattern escape in replace function)
Line 259: Line 259:
     if plain then
     if plain then
         pattern = str._escapePattern( pattern );
         pattern = str._escapePattern( pattern );
         replace = str._escapePattern( replace );
         replace = mw.ustring.gsub( replace, "%%", "%%%%" ); --Only need to escape replacement sequences.
     end
     end
      
      
Anonymous user

Navigation menu