shim.js 162 B

12345678
  1. 'use strict';
  2. var validRegExp = require('../../valid-reg-exp');
  3. module.exports = function (string) {
  4. validRegExp(this);
  5. return String(string).match(this);
  6. };