2023-10-03 11:14:36 +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); } });
|