UNPKG

406 BJavaScriptView Raw
1/*!
2 replaceall (v0.1.6) 23-04-2015
3 (c) Lee Crossley <leee@hotmail.co.uk> (http://ilee.co.uk/)
4*/
5var replaceall=function(a,b,c){return b=b.replace(/\$/g,"$$$$"),c.replace(new RegExp(a.replace(/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|<>\-\&])/g,"\\$&"),"g"),b)};"undefined"!=typeof exports&&("undefined"!=typeof module&&module.exports&&(exports=module.exports=replaceall),exports.replaceall=replaceall);
\No newline at end of file