Skip to content

Commit

Permalink
fix(kb.gbapp): Fixing WHOLE WORD in Simple Search.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Aug 13, 2021
1 parent 26a78d5 commit 3ad3459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kb.gbapp/services/KBService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export class KBService implements IGBKBService {
question = await GuaribasQuestion.findOne({
where: {
instanceId: instanceId,
content: { [Op.like]: `%${text}%` }
content: { [Op.like]: `%[^a-z]${text}[^a-z]%` }
}
});
}
Expand Down

0 comments on commit 3ad3459

Please sign in to comment.