Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

Commit

Permalink
fix: final fix for the startswith function of the mongodriver
Browse files Browse the repository at this point in the history
  • Loading branch information
StasiumDev committed Oct 26, 2023
1 parent be4eb89 commit 54b3f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/MongoDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class MongoDriver implements IRemoteDriver {
const model = await this.getModel(table);
const res = await model!.find({
ID: {
$regex: `/^${query}/i`,
$regex: new RegExp(query, "i"),
},
});

Expand Down

0 comments on commit 54b3f35

Please sign in to comment.