Skip to content

Commit

Permalink
Fix RegExp for identifier matching
Browse files Browse the repository at this point in the history
  • Loading branch information
djhi committed May 3, 2024
1 parent 51de8e4 commit ad8097b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export class BaseServer {

// handle collections
const matches = request.url?.match(
new RegExp(`^${this.baseUrl}\\/([^\\/?]+)(\\/(\\d+))?(\\?.*)?$`),
new RegExp(`^${this.baseUrl}\\/([^\\/?]+)(\\/(\\w))?(\\?.*)?$`),
);
if (!matches) {
return { status: 404, headers: {} };
Expand Down

0 comments on commit ad8097b

Please sign in to comment.