-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Incorrect identification of the static part of the pattern for the disk root on Windows #63
Comments
Unfortunately, I don't know a better fix than the next one: // https://github.com/gulpjs/glob-parent/blob/3a14ff5125d9fa9614dc214532327711fa6bbd93/index.js#L32
// remove path parts that are globby
do {
if (isWin32 && !str.includes('\\')) {
str = pathWindowsDirname(str); // path.win32.dirname
} else {
str = pathPosixDirname(str); // path.unix.dirname
}
} while (isGlobby(str)); It is important for us to understand that C: is a drive on Windows. The proposed fix also adds support for UNC paths like |
This seems like a good change. I'll look into making it soon (been very busy recently). |
@sttk do you have time to look into this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What were you expecting to happen?
What actually happened?
Please give us a sample of your gulpfile
The examples above are tests for this repository.
Please provide the following information:
node -v
):v20.0.0
npm -v
):9.6.4
gulp -v
): nopeAdditional information
The current result is not correct because its use leads to incorrect results in standard Node methods.like
path.*
orfs.*
:The text was updated successfully, but these errors were encountered: