hexo/node_modules/core-js/modules/core.regexp.escape.js

6 lines
232 B
JavaScript
Raw Normal View History

2023-09-25 15:58:56 +08:00
// https://github.com/benjamingr/RexExp.escape
var $export = require('./_export');
var $re = require('./_replacer')(/[\\^$*+?.()|[\]{}]/g, '\\$&');
$export($export.S, 'RegExp', { escape: function escape(it) { return $re(it); } });