Comparing version 0.0.2 to 0.1.0
@@ -6,3 +6,3 @@ { | ||
"homepage": "http://ilee.co.uk", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"main": "replaceall.min.js", | ||
@@ -31,5 +31,5 @@ "keywords": [ | ||
"grunt-contrib-jasmine": "~0.6.x", | ||
"grunt-contrib-uglify": "~0.3.x", | ||
"grunt-contrib-uglify": "~0.4.x", | ||
"grunt-cli": "~0.1.x" | ||
} | ||
} |
/*! | ||
replaceall (v0.0.2) 07-02-2014 | ||
replaceall (v0.1.0) 25-03-2014 | ||
(c) Lee Crossley <leee@hotmail.co.uk> (http://ilee.co.uk/) | ||
*/ | ||
var 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); |