Skip to content

Escape Pattern before being passed to glob #5

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

Merged
merged 3 commits into from
May 29, 2024

Conversation

rcoh
Copy link
Contributor

@rcoh rcoh commented May 24, 2024

If JAVA_HOME contains a character that can be interpreted as a glob, this causes this crate to fail to find the JVM. This uses Pattern::escape prior to calling glob & adds a test.

In the second commit, I took the liberty of running cargo fmt.

Copy link
Owner

@astonbitecode astonbitecode left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Can you please take into consideration the possibility that the tests may run in Windows?

@astonbitecode astonbitecode merged commit 9af3cc5 into astonbitecode:master May 29, 2024
@astonbitecode
Copy link
Owner

Thanks!

@rcoh
Copy link
Contributor Author

rcoh commented May 29, 2024

Thank you! Do you mind commenting here (to send me a notification) when this is released to crates.io?

@astonbitecode
Copy link
Owner

It is already released. v0.17.0

@rcoh
Copy link
Contributor Author

rcoh commented May 29, 2024 via email

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.

2 participants