mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-08 07:19:13 +08:00
14 lines
271 B
Text
14 lines
271 B
Text
'use strict';
|
|
|
|
var implementation = require('./implementation');
|
|
|
|
module.exports = function getPolyfill() {
|
|
if (String.prototype.matchAll) {
|
|
try {
|
|
''.matchAll(RegExp.prototype);
|
|
} catch (e) {
|
|
return String.prototype.matchAll;
|
|
}
|
|
}
|
|
return implementation;
|
|
};
|