Comparing version 0.1.4 to 0.1.5
@@ -6,3 +6,3 @@ { | ||
"homepage": "http://ilee.co.uk", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"main": "replaceall.min.js", | ||
@@ -29,5 +29,5 @@ "keywords": [ | ||
"grunt-contrib-jshint": "^0.11.0", | ||
"grunt-contrib-uglify": "^0.7.0", | ||
"grunt-contrib-uglify": "^0.8.0", | ||
"grunt-contrib-watch": "^0.6.1" | ||
} | ||
} |
/*! | ||
replaceall (v0.1.4) 12-02-2015 | ||
replaceall (v0.1.5) 19-02-2015 | ||
(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); |