From 76c7b1bdc88cd38b30562f21fd7ba63e2e277677 Mon Sep 17 00:00:00 2001 From: Timeless0911 <1604889533@qq.com> Date: Thu, 9 Jan 2025 19:43:19 +0800 Subject: [PATCH] fix: edge case of dts RegExp --- packages/core/src/constant.ts | 6 +++--- packages/core/tests/constant.test.ts | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/core/src/constant.ts b/packages/core/src/constant.ts index 77cbabe84..85913bd83 100644 --- a/packages/core/src/constant.ts +++ b/packages/core/src/constant.ts @@ -20,9 +20,9 @@ const JS_EXTENSIONS: string[] = [ 'js', 'mjs', 'jsx', - '(?