wallet-core/node_modules/core-js/modules/es7.regexp.escape.js
2017-05-03 15:35:00 +02:00

6 lines
234 B
JavaScript

// https://github.com/benjamingr/RexExp.escape
var $export = require('./$.export')
, $re = require('./$.replacer')(/[\\^$*+?.()|[\]{}]/g, '\\$&');
$export($export.S, 'RegExp', {escape: function escape(it){ return $re(it); }});