✏️ 正在编辑: index.js
路径:
/lib/node_modules/npm/node_modules/escape-string-regexp/index.js
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
'use strict'; var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; module.exports = function (str) { if (typeof str !== 'string') { throw new TypeError('Expected a string'); } return str.replace(matchOperatorsRe, '\\$&'); };
💾 保存文件
← 返回文件管理器