-
Notifications
You must be signed in to change notification settings - Fork 0
Tind doesn't also list interviewer and interviewee the same way #98
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,9 +27,9 @@ export default function TindRefs () { | |
| break; | ||
| case 'Contributor': | ||
| // if value ends in interviewee or interviewer, assign accordingly | ||
| if (value.endsWith(' interviewer')) { | ||
| if (value.match(/interviewer/)) { | ||
| ref.interviewers.push(value.replace(' interviewer', '').trim()); | ||
| } else if (value.endsWith(' interviewee')) { | ||
| } else if (value.match(/interviewee/)) { | ||
| ref.interviewees.push(value.replace(' interviewee', '').trim()); | ||
|
Comment on lines
+30
to
33
|
||
| } | ||
| break; | ||
|
|
@@ -92,4 +92,4 @@ export default function TindRefs () { | |
| </AccordionItem> | ||
| </Accordion> | ||
| ) | ||
| } | ||
| } | ||
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.
The comment states "if value ends in interviewee or interviewer" but the updated code uses
match()which checks if the term appears anywhere in the string, not just at the end. This comment is now inaccurate and should be updated to reflect the actual behavior.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.
This is a fair suggestion imo.
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.
agreed and I actually had saw that in the code and was thinking I need to change that. Just forgot :)