Sha256: 7085c3bfdfce75492880d420ba56e2669c29512a177a52bb3f5ae2063b90e9e9

Contents?: true

Size: 358 Bytes

Versions: 17

Compression:

Stored size: 358 Bytes

Contents

'use strict';

var hasSymbols = require('has-symbols')();
var regexpMatchAll = require('./regexp-matchall');

module.exports = function getRegExpMatchAllPolyfill() {
	if (!hasSymbols || typeof Symbol.matchAll !== 'symbol' || typeof RegExp.prototype[Symbol.matchAll] !== 'function') {
		return regexpMatchAll;
	}
	return RegExp.prototype[Symbol.matchAll];
};

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/string.prototype.matchall/polyfill-regexp-matchall.js
immosquare-cleaner-0.1.59 node_modules/string.prototype.matchall/polyfill-regexp-matchall.js
immosquare-cleaner-0.1.58 node_modules/string.prototype.matchall/polyfill-regexp-matchall.js
immosquare-cleaner-0.1.57 node_modules/string.prototype.matchall/polyfill-regexp-matchall.js
immosquare-cleaner-0.1.56 node_modules/string.prototype.matchall/polyfill-regexp-matchall.js
immosquare-cleaner-0.1.55 node_modules/string.prototype.matchall/polyfill-regexp-matchall.js
immosquare-cleaner-0.1.54 node_modules/string.prototype.matchall/polyfill-regexp-matchall.js
immosquare-cleaner-0.1.53 node_modules/string.prototype.matchall/polyfill-regexp-matchall.js
immosquare-cleaner-0.1.52 node_modules/string.prototype.matchall/polyfill-regexp-matchall.js
immosquare-cleaner-0.1.51 node_modules/string.prototype.matchall/polyfill-regexp-matchall.js
immosquare-cleaner-0.1.50 node_modules/string.prototype.matchall/polyfill-regexp-matchall.js
immosquare-cleaner-0.1.49 node_modules/string.prototype.matchall/polyfill-regexp-matchall.js
immosquare-cleaner-0.1.48 node_modules/string.prototype.matchall/polyfill-regexp-matchall.js
immosquare-cleaner-0.1.47 node_modules/string.prototype.matchall/polyfill-regexp-matchall.js
immosquare-cleaner-0.1.46 node_modules/string.prototype.matchall/polyfill-regexp-matchall.js
immosquare-cleaner-0.1.45 node_modules/string.prototype.matchall/polyfill-regexp-matchall.js
decidim-0.26.8 packages/eslint-config/node_modules/string.prototype.matchall/polyfill-regexp-matchall.js