Opal-Estate-Pro/node_modules/core-js/modules/core.regexp.escape.js

6 lines
232 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02: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); } });