From b3586c870fe0fdcaeee9cdbf4fc91f2e944dbae8 Mon Sep 17 00:00:00 2001 From: Ryan Turnquist Date: Mon, 6 Nov 2023 16:42:07 -0800 Subject: [PATCH] fix: make query check more strict --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b87e6eb..bcd0f26 100644 --- a/src/index.ts +++ b/src/index.ts @@ -74,7 +74,7 @@ const virtualFiles = new Map< string, VirtualFile | DeferredPromise >(); -const queryReg = /\?marko-.+$/; +const queryReg = /\?marko-[^?]+$/; const browserEntryQuery = "?marko-browser-entry"; const serverEntryQuery = "?marko-server-entry"; const virtualFileQuery = "?marko-virtual";