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

fix: escapeAssertion is compatible with safari #444

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

nodece
Copy link
Member

@nodece nodece commented Mar 28, 2023

Fix #441

This regex is generated by @openai chatGPT.

Signed-off-by: nodece <nodeces@gmail.com>
@casbin-bot
Copy link
Member

@Zxilly @Shivansh-yadav13 please review

@hsluoyz
Copy link
Member

hsluoyz commented Mar 28, 2023

@johnsonjo4531 @IonVillarreal plz review

@johnsonjo4531
Copy link
Contributor

@hsluoyz @nodece looks great to me! After looking over it a couple times, I am certain that it does exactly the same thing I was attempting to do 😄. Great work! I'm also certain it doesn't use any newer features of regex, so browser support should be good too.

@IonVillarreal
Copy link

Yeah! Thank you very much, I can confirm that it works fine on Safari 16.3 🙌

Anyway, Safari 16.4 adds support for RegExp lookbehind assertions, but surely version 16.3 will be around for a long time.

https://developer.apple.com/documentation/safari-release-notes/safari-16_4-release-notes

@hsluoyz hsluoyz merged commit d13a3b9 into casbin:master Mar 29, 2023
github-actions bot pushed a commit that referenced this pull request Mar 29, 2023
## [5.26.1](v5.26.0...v5.26.1) (2023-03-29)

### Bug Fixes

* escapeAssertion is compatible with safari ([#444](#444)) ([d13a3b9](d13a3b9))
@github-actions
Copy link

🎉 This PR is included in version 5.26.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

Problem "invalid group" with v5.24.4 and later
5 participants