biofriction-wp-theme/node_modules/core-js/modules/core.regexp.escape.js

6 lines
232 B
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +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); } });