summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es5-ext/reg-exp/#/match/shim.js
blob: 4f99cf4d1c02c59b04b667943dbd9f2089ca9bea (plain)
1
2
3
4
5
6
7
8
'use strict';

var validRegExp = require('../../valid-reg-exp');

module.exports = function (string) {
	validRegExp(this);
	return String(string).match(this);
};