From f6a23ce054947388274e4260ae0ba5bc07727675 Mon Sep 17 00:00:00 2001 From: Josh Kenny Date: Fri, 4 Oct 2024 15:30:29 -0400 Subject: [PATCH] allow no allocation aliases --- entry.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/entry.ts b/entry.ts index 163dab1..a9ec147 100644 --- a/entry.ts +++ b/entry.ts @@ -316,11 +316,7 @@ const HOOKS: Record = { // is similarly implemented as a singleton data = data .replace(/\barrayOf\(\)/g, "emptyArray()") - .replace(/\blistOf\(\)/g, "emptyList()") - .replace(/\bmapOf\(\)/g, "emptyMap()") - .replace(/\bsequenceOf\(\)/g, "emptySequence()") - .replace(/\bsetOf\(\)/g, "emptySet()"); - + .replace(/\bsequenceOf\(\)/g, "emptySequence()"); // Remove unnecessary constructor keyword data = data.replace(/(?<=\bclass \S+) constructor(?=\()/g, ""); }