'use strict'; var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; module.exports = function (str) { if (typeof str !== 'string') { throw new TypeError('Expected a string'); } return str.replace(matchOperatorsRe, '\\$&'); };
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
index.js | File | 226 B | 0644 |
|
license | File | 1.09 KB | 0644 |
|
package.json | File | 1.98 KB | 0644 |
|
readme.md | File | 552 B | 0644 |
|