RegExp.prototype.match

A robust & optimized ES3-compatible polyfill for the `RegExp.prototype.match` method in ECMAScript 6.

MIT License

Downloads
378
Stars
10
Committers
1

ES6 RegExp.prototype.match polyfill Build status Code coverage status

A robust & optimized ES3-compatible polyfill for the RegExp.prototype.match method in ECMAScript 6.

Installation

In a browser:

<script src="regex-prototype-match.js"></script>

Via npm:

npm install regexp.prototype.match

Then, in Node.js:

require('regexp.prototype.match');

// On Windows and on Mac systems with default settings, case doesn’t matter,
// which allows you to do this instead:
require('RegExp.prototype.match');

Author

twitter/mathias
Mathias Bynens

License

This polyfill is available under the MIT license.

Package Rankings
Top 6.88% on Npmjs.org
Top 6.75% on Proxy.golang.org
Badges
Extracted from project README
Build status Code coverage status twitter/mathias
Related Projects