Skip to content
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

Glob works incorrect #16526

Closed
nine-fox opened this issue Jan 19, 2025 · 2 comments
Closed

Glob works incorrect #16526

nine-fox opened this issue Jan 19, 2025 · 2 comments
Labels
bug Something isn't working bun:glob Related to Bun.Glob

Comments

@nine-fox
Copy link

What version of Bun is running?

1.1.34

What platform is your computer?

windows 10

What steps can reproduce the bug?

Hi,

The following glob code works incorrect:

import { Glob } from "bun";

const glob = new Glob("**/*subdir");

console.log(glob.match("s/subsubdir")); // ->false

The result should be true. While the following returned is true anyway:

import { Glob } from "bun";

const glob = new Glob("**/*subdir");

console.log(glob.match("a/subsubdir")); // -> true

By digging around, I found bun used the lib globlin, which has the same issue, too. I raised an issue here:

The-King-of-Toasters/globlin#1

What is the expected behavior?

import { Glob } from "bun";

const glob = new Glob("**/*subdir");

console.log(glob.match("s/subsubdir")); // --> should return true

What do you see instead?

No response

Additional information

No response

@nine-fox nine-fox added bug Something isn't working needs triage labels Jan 19, 2025
@nine-fox nine-fox changed the title Glob Glob is incorrect Jan 19, 2025
@nine-fox nine-fox changed the title Glob is incorrect Glob works incorrect Jan 19, 2025
@RiskyMH RiskyMH added the bun:glob Related to Bun.Glob label Jan 20, 2025
@RiskyMH
Copy link
Member

RiskyMH commented Jan 20, 2025

Related to #14934

@nine-fox
Copy link
Author

Related to #14934

thanks for your reply. Since it is already tracked, will close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bun:glob Related to Bun.Glob
Projects
None yet
Development

No branches or pull requests

2 participants