Skip to content

Commit

Permalink
searching for single terms returning internal server error, trying to…
Browse files Browse the repository at this point in the history
… fix
  • Loading branch information
MohammedArab1 committed Jun 5, 2024
1 parent cafbd4d commit 3335425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API/src/utils.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const BookNamesModel = require("../../V1/DB/models/bookName")

const escapeRegExp = (string) => {
return string.toString().replace(/[.*+?^${}()[\]\\]/g, "\\$&"); // $& means the whole matched string
return string.toString().replace(/[.*+?^${}|()[\]\\]/g, "\\$&"); // $& means the whole matched string
};
const returnBookIds = async () => {
const bookNames = await BookNamesModel.find({});
Expand Down

0 comments on commit 3335425

Please sign in to comment.