From 5a66cdbf17873fe9d8a9d1666149d08a8d39bcfa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 11:36:08 +0000 Subject: [PATCH] Use properly anchored regex patterns for node_modules and .git Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- back/loaders/deps.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/back/loaders/deps.ts b/back/loaders/deps.ts index 02977619..baa69185 100644 --- a/back/loaders/deps.ts +++ b/back/loaders/deps.ts @@ -67,8 +67,8 @@ export default async (src: string = 'deps') => { const watcher = chokidar.watch(source, { ignored: [ /(^|[\/\\])\../, // ignore dotfiles - /node_modules/, // ignore node_modules - /\.git/, // ignore .git + /(^|[\/\\])node_modules([\/\\]|$)/, // ignore node_modules + /(^|[\/\\])\.git([\/\\]|$)/, // ignore .git ], persistent: true, });