Skip to content

Commit a2c30e2

Browse files
committed
fix: update regex for job category
1 parent a30ab11 commit a2c30e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/controllers/jobsController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const buildConditions = ({ search, category, position }) => {
4141
if (position?.trim()) {
4242
const safe = escapeRegex(position.trim());
4343
conditions.push({
44-
title: { $regex: safe, $options: 'i' },
44+
title: { $regex: `^${safe}`, $options: 'i' },
4545
});
4646
}
4747

0 commit comments

Comments
 (0)