Module:String: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
fix pattern escape in replace function
(+Unit tests for this module are available at Module:String/tests.)
(fix pattern escape in replace function)
Line 259:
if plain then
pattern = str._escapePattern( pattern );
replace = strmw._escapePatternustring.gsub( replace, "%%", "%%%%" ); --Only need to escape replacement sequences.
end
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu