diff options
author | Puyodead1 <puyodead@proton.me> | 2023-01-19 09:52:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-20 01:52:05 +1100 |
commit | 071cf6c5f2a7be7825dbb9b67a31a4ad1e3bc795 (patch) | |
tree | ed98d4352d152d6505d237c3cd1d6a612434f37e | |
parent | Merge pull request #955 from fosscord/dev/fix-bans (diff) | |
download | server-071cf6c5f2a7be7825dbb9b67a31a4ad1e3bc795.tar.xz |
fix: route file regex (#956)
-rw-r--r-- | src/util/util/TraverseDirectory.ts | 2 |
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( |