mirror of
https://github.com/democratic-csi/democratic-csi.git
synced 2026-10-18 10:28:35 +02:00
polyfill replaceAll
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
if (typeof String.prototype.replaceAll == "undefined") {
|
||||
String.prototype.replaceAll = function (match, replace) {
|
||||
return this.replace(new RegExp(match, "g"), () => replace);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user