removeComments to false

This commit is contained in:
Adam Stachowicz
2021-09-21 00:48:26 +02:00
parent bcc02c1680
commit e8ef63e0a3
3 changed files with 14 additions and 29 deletions

View File

@@ -50,13 +50,13 @@ export function debug(msg: any) {
declare global { interface String { replaceAll(str: string, newStr: string): string; } }
/**
* String.prototype.replaceAll() polyfill
* https://gomakethings.com/how-to-replace-a-section-of-a-string-with-another-one-with-vanilla-js/
* @author Chris Ferdinandi
* @license MIT
*/
export function polyfill() {
/**
* String.prototype.replaceAll() polyfill
* https://gomakethings.com/how-to-replace-a-section-of-a-string-with-another-one-with-vanilla-js/
* @author Chris Ferdinandi
* @license MIT
*/
if (!String.prototype.replaceAll) {
String.prototype.replaceAll = function (str: string, newStr: string) {
// If a regex pattern