summary refs log tree commit diff
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-01-19 09:52:05 -0500
committerGitHub <noreply@github.com>2023-01-20 01:52:05 +1100
commit071cf6c5f2a7be7825dbb9b67a31a4ad1e3bc795 (patch)
treeed98d4352d152d6505d237c3cd1d6a612434f37e
parentMerge pull request #955 from fosscord/dev/fix-bans (diff)
downloadserver-071cf6c5f2a7be7825dbb9b67a31a4ad1e3bc795.tar.xz
fix: route file regex (#956)
-rw-r--r--src/util/util/TraverseDirectory.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/util/TraverseDirectory.ts b/src/util/util/TraverseDirectory.ts
index b9ad2ba5..0cc48d4a 100644
--- a/src/util/util/TraverseDirectory.ts
+++ b/src/util/util/TraverseDirectory.ts
@@ -22,7 +22,7 @@ import { Server, traverseDirectory } from "lambert-server";
 const extension =
 	Symbol.for("ts-node.register.instance") in process ? "ts" : "js";
 
-const DEFAULT_FILTER = new RegExp("^([^.].*)(?<!.d).(" + extension + ")$");
+const DEFAULT_FILTER = new RegExp("^([^.].*)(?<!\.d).(" + extension + ")$");
 
 export function registerRoutes(server: Server, root: string) {
 	return traverseDirectory(