From e06f089ea3f5f376a23e08ad0b90bda8a7191b8f Mon Sep 17 00:00:00 2001 From: Stefan Zerkalica Date: Thu, 7 Dec 2023 14:24:54 +0300 Subject: [PATCH] $mol_sourcemap strip dataurls --- sourcemap/sourcemap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sourcemap/sourcemap.ts b/sourcemap/sourcemap.ts index 131d60565de..ef062fd8e54 100644 --- a/sourcemap/sourcemap.ts +++ b/sourcemap/sourcemap.ts @@ -15,6 +15,6 @@ namespace $ { } export function $mol_sourcemap_strip(this: $, data: string) { - return data.replace( /^\/\/#\s*sourceMappingURL=/mg , '//' ) + '\n' + return data.replace( /^\/\/#\s*sourceMappingURL=[^\n]*/mg , '' ) + '\n' } }