New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EagleEye exact keyword matching #383
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
6b266e6
to
ac16e2f
Compare
@@ -33,7 +33,12 @@ export class EagleEyeService { | |||
|
|||
static async populate(keywords) { | |||
const data = { | |||
keywords | |||
exactKeywords: keywords.filter((k) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Insert ⏎········
exactKeywords: keywords.filter((k) => { | |
exactKeywords: keywords | |
.filter((k) => { |
@@ -33,7 +33,12 @@ | |||
|
|||
static async populate(keywords) { | |||
const data = { | |||
keywords | |||
exactKeywords: keywords.filter((k) => { | |||
return k[0] === '"' && k[k.length - 1] === '"' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Insert ··
return k[0] === '"' && k[k.length - 1] === '"' | |
return k[0] === '"' && k[k.length - 1] === '"' |
keywords | ||
exactKeywords: keywords.filter((k) => { | ||
return k[0] === '"' && k[k.length - 1] === '"' | ||
}).map((s) => s.replaceAll('"', '')), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace })
with ··})⏎········
}).map((s) => s.replaceAll('"', '')), | |
}) | |
.map((s) => s.replaceAll('"', '')), |
Changes proposed ✍️
Screenshots (front-end changes only)
Checklist ✅
Feature
,Enhancement
, orBug
.frontend/.env.dist.local
,frontend/.env.dist.composed
.backend/.env.dist.local
,backend/.env.dist.composed
.