UNPKG

regexp.escape

Version:

A robust ES3-compatible polyfill for the `RegExp.escape` proposal - see https://github.com/tc39/proposal-regex-escaping

8 lines (5 loc) 152 B
'use strict'; var implementation = require('./implementation'); module.exports = function getPolyfill() { return RegExp.escape || implementation; };