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
commit0c815fde919ecbd83ab43ab04b6ff8049e142fe2 (patch)
treea1551676a3d0ef0a5379d636b2b70c075a5219ca
parentMerge pull request #955 from fosscord/dev/fix-bans (diff)
downloadserver-0c815fde919ecbd83ab43ab04b6ff8049e142fe2.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(