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

feat: replace picomatch with minimatch #440

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

nodece
Copy link
Member

@nodece nodece commented Mar 19, 2023

Fix #386

Replace: #393

Motivation

The picomatch cannot be running in the browser, so use the mininmatch instead of the picomatch.

@casbin-bot
Copy link
Member

@Zxilly @Shivansh-yadav13 please review

@hsluoyz hsluoyz changed the title fix: replace picomatch with minimatch feat: replace picomatch with minimatch Mar 20, 2023
@hsluoyz hsluoyz merged commit 4e977b3 into casbin:master Mar 20, 2023
github-actions bot pushed a commit that referenced this pull request Mar 20, 2023
# [5.25.0](v5.24.4...v5.25.0) (2023-03-20)

### Features

* replace picomatch with minimatch ([#440](#440)) ([4e977b3](4e977b3))
@github-actions
Copy link

🎉 This PR is included in version 5.25.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Zxilly
Copy link
Contributor

Zxilly commented Mar 20, 2023

If pattern is "*", new implementation will lead to index out of range.

@nodece
Copy link
Member Author

nodece commented Mar 20, 2023

If pattern is "*", new implementation will lead to index out of range.

When the pattern is "*", pattern[1] is undefined, so don't worry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

using with react (vite)
4 participants