Sha256: c444193d583d7c86c97eafa786e6e2ed9107e4f96fc33a710cefe6600bdc9e74
Contents?: true
Size: 227 Bytes
Versions: 118
Compression:
Stored size: 227 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
118 entries across 82 versions & 8 rubygems