-
Notifications
You must be signed in to change notification settings - Fork 73
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
feat: add topic separator option #111
Conversation
Codecov Report
@@ Coverage Diff @@
## master #111 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 3 3
Lines 15 15
Branches 2 2
======================================
Misses 15 15 Continue to review full report at Codecov.
|
27bd59d
to
e306c55
Compare
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.
Nice! A few more tests around finding commands might be nice.
const findId = (id: string, next: string[]): string | undefined => { | ||
const idPresnet = (id: string) => ids.includes(id) | ||
if (idPresnet(id) && !idPresnet(`${id}:${next[0]}`)) return id | ||
if (next.length === 0 || next[0] === '--') return |
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.
Shouldn't this also return id
?
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 returning no match b/c the line would return the last valid id found. This line is saying, you didn't find anything to return (line above it) and you have no further argv to explore.
No description provided.