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

panic: syntax error in pattern #3

Open
jokeapart opened this issue Nov 3, 2020 · 3 comments
Open

panic: syntax error in pattern #3

jokeapart opened this issue Nov 3, 2020 · 3 comments

Comments

@jokeapart
Copy link

jokeapart commented Nov 3, 2020

Used the pattern below:
matches, err := filepathx.Glob(casename + "/**/*.png")

It works just fine but I recently encountered the error "panic: syntax error in pattern" while globing a directory. Please what can I do?

@gabyx
Copy link

gabyx commented Dec 18, 2020

Its due to the fact that the code does not escape properly the filepath.Match syntax. Which it should do... On windows however escaping is disabled...

@gabyx
Copy link

gabyx commented Dec 18, 2020

#4

@jokeapart
Copy link
Author

#4

Thank you so much for the update.

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

No branches or pull requests

2 participants