-
Notifications
You must be signed in to change notification settings - Fork 75
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
fix: handle windows drive letter at start of path #1099
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1099 +/- ##
==========================================
+ Coverage 92.47% 92.53% +0.06%
==========================================
Files 36 36
Lines 1342 1353 +11
Branches 272 272
==========================================
+ Hits 1241 1252 +11
Misses 69 69
Partials 32 32
Flags with carried forward coverage won't be shown. Click here to find out more.
|
8c1932b
to
4a199de
Compare
@joseph-sentry could you write a test for this? |
f04f5f2
to
685da7a
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.
small nit
src/helpers/files.ts
Outdated
@@ -320,7 +320,8 @@ export function getFilePath(projectRoot: string, filePath: string): string { | |||
filePath.startsWith('./') || | |||
filePath.startsWith('/') || | |||
filePath.startsWith('.\\') || | |||
filePath.startsWith('.\\') | |||
filePath.startsWith('.\\') || | |||
/^[A-Z]:\\\S*/.test(filePath) |
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.
for sanity, just add a comment here why we are doing this
685da7a
to
cd45cd5
Compare
Signed-off-by: joseph-sentry <joseph.sawaya@sentry.io>
cd45cd5
to
0e48a36
Compare
Signed-off-by: joseph-sentry <joseph.sawaya@sentry.io>
Fixes: #544