blob: 3ddd748c0abaca50f20e7c880157b41f6a5ffad6 (
plain)
1
2
3
4
5
|
// 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); } });
|