Skip to content

fix: handle windows drive letter at start of path#1099

Merged
joseph-sentry merged 1 commit intomainfrom
joseph/check-windows
Aug 10, 2023
Merged

fix: handle windows drive letter at start of path#1099
joseph-sentry merged 1 commit intomainfrom
joseph/check-windows

Conversation

@joseph-sentry
Copy link
Copy Markdown
Contributor

@joseph-sentry joseph-sentry commented Jul 26, 2023

Fixes: #544

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 26, 2023

Codecov Report

Merging #1099 (8c1932b) into main (016e9ba) will increase coverage by 0.06%.
The diff coverage is 93.75%.

❗ Current head 8c1932b differs from pull request most recent head 0e48a36. Consider uploading reports for the commit 0e48a36 to get more accurate results

@@            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              
Flag Coverage Δ
aarch64 92.46% <93.75%> (+0.06%) ⬆️
aarch64-without-git 92.46% <93.75%> (+0.06%) ⬆️
alpine 92.46% <93.75%> (+0.06%) ⬆️
alpine-proxy 92.46% <93.75%> (+0.06%) ⬆️
alpine-without-git 92.46% <93.75%> (+0.06%) ⬆️
linux 92.46% <93.75%> (+0.06%) ⬆️
linux-without-git 92.46% <93.75%> (+0.06%) ⬆️
macos 92.46% <93.75%> (+0.06%) ⬆️
macos-without-git 92.46% <93.75%> (+0.06%) ⬆️
windows 91.86% <87.50%> (+0.06%) ⬆️
windows-without-git 91.86% <87.50%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/index.ts 76.75% <90.00%> (+1.05%) ⬆️
src/helpers/files.ts 92.85% <100.00%> (+0.26%) ⬆️

@joseph-sentry joseph-sentry force-pushed the joseph/check-windows branch from 8c1932b to 4a199de Compare July 27, 2023 15:20
@joseph-sentry joseph-sentry marked this pull request as ready for review July 27, 2023 15:20
@joseph-sentry joseph-sentry requested a review from a team as a code owner July 27, 2023 15:20
@joseph-sentry joseph-sentry changed the title chore(logging): add some logging fix: handle windows drive letter at start of path Jul 27, 2023
@thomasrockhu-codecov
Copy link
Copy Markdown
Contributor

@joseph-sentry could you write a test for this?

@joseph-sentry joseph-sentry force-pushed the joseph/check-windows branch 2 times, most recently from f04f5f2 to 685da7a Compare August 2, 2023 15:09
Copy link
Copy Markdown
Contributor

@thomasrockhu-codecov thomasrockhu-codecov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit

filePath.startsWith('.\\') ||
filePath.startsWith('.\\')
filePath.startsWith('.\\') ||
/^[A-Z]:\\\S*/.test(filePath)
Copy link
Copy Markdown
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Glob path support for Windows drive letters

2 participants