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: Add keyGet function and related test. #273

Merged
merged 1 commit into from
Aug 12, 2022

Conversation

AsakusaRinne
Copy link
Contributor

Add keyGet function and related test.

@casbin-bot
Copy link
Member

@sagilio please review

@hsluoyz
Copy link
Member

hsluoyz commented Aug 4, 2022

@sagilio

@sagilio sagilio self-assigned this Aug 5, 2022
@sagilio sagilio added the enhancement Enhancement the exist feature label Aug 5, 2022
Copy link
Member

@sagilio sagilio left a comment

Choose a reason for hiding this comment

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

LGTM

/// <returns>Whether key1 matches key2.</returns>
public static string KeyGet(string key1, string key2)
{
int m = key1.Length, n = key2.Length;
Copy link
Member

Choose a reason for hiding this comment

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

m and n may not be the most suitable name, It is difficult to see the association with key1 or key2.

@sagilio sagilio merged commit b7a4412 into casbin:preview Aug 12, 2022
@github-actions
Copy link

github-actions bot commented Jan 6, 2023

🎉 This PR is included in version 2.0.0-preview.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 2.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 2.0.0 🎉

The release is available on GitHub release

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.

4 participants