UNPKG

regexp.escape

Version:

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

13 lines (8 loc) 191 B
'use strict'; var escapeShim = require('../'); var test = require('tape'); var runTests = require('./tests'); test('as a function', function (t) { runTests(escapeShim, t); t.end(); });