From 504f6839c2497d4815cc8bcbec967f84a9e45644 Mon Sep 17 00:00:00 2001 From: pTr <47277287+ptrgits@users.noreply.github.com> Date: Thu, 7 Aug 2025 14:46:51 +0700 Subject: [PATCH] Update watch.js --- resources/watch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/watch.js b/resources/watch.js index 9ca6682..47676cb 100644 --- a/resources/watch.js +++ b/resources/watch.js @@ -171,7 +171,7 @@ function srcPath(filepath) { // Predicates function isJS(filepath) { - return filepath.indexOf('.js') === filepath.length - 3; + return filepath.endsWith('.js'); } function allTests(filepaths) {