Sha256: c3c8e0a341cdd09fffe296a58afd2e68052411c8c54c6f5ddc699b1656b74745
Contents?: true
Size: 256 Bytes
Versions: 19
Compression:
Stored size: 256 Bytes
Contents
var makeString = require('./helper/makeString'); module.exports = function replaceAll(str, find, replace, ignorecase) { var flags = (ignorecase === true)?'gi':'g'; var reg = new RegExp(find, flags); return makeString(str).replace(reg, replace); };
Version data entries
19 entries across 19 versions & 1 rubygems