From 732d1aba38fd2ce82283211b2bd1b41cb7c59406 Mon Sep 17 00:00:00 2001 From: apppro123 Date: Wed, 13 Jan 2021 20:19:52 +0100 Subject: [PATCH] now no links should be removed anymore --- src/minify-document.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/minify-document.ts b/src/minify-document.ts index 2a1a6b4..496285a 100644 --- a/src/minify-document.ts +++ b/src/minify-document.ts @@ -27,9 +27,9 @@ export function minifyDocument(doc: vscode.TextDocument): void { function minifyPHP(phpText: string): string { //replace all html comments - let minifiedText = phpText.replace(//g, ''); + let minifiedText = phpText.replace(//g, ''); //remove php comments - minifiedText = minifiedText.replace(/\/\*[\s\S]*?\*\/|\/\/.*/g, ''); + minifiedText = minifiedText.replace(/\/\*[\s\S]*?\*\/|(?