Sha256: 02f3a564251a4aef9084ee33489aa4a6bbd6466c676998bd223af2c05ac8ef07
Contents?: true
Size: 226 Bytes
Versions: 253
Compression:
Stored size: 226 Bytes
Contents
'use strict'; var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; module.exports = function (str) { if (typeof str !== 'string') { throw new TypeError('Expected a string'); } return str.replace(matchOperatorsRe, '\\$&'); };
Version data entries
253 entries across 226 versions & 35 rubygems