Skip to content

Commit

Permalink
feat: Allow underscores in permission strings
Browse files Browse the repository at this point in the history
  • Loading branch information
phinner committed Apr 8, 2024
1 parent d7613e3 commit 807fc51
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static PermissionManager noop() {
* allows you to set a default value for all permissions.
* </blockquote>
*/
String PERMISSION_REGEX = "^(\\*|[a-z\\d\\-]+)(\\.(\\*|[a-z\\d\\-]+))*$";
String PERMISSION_REGEX = "^(\\*|[\\w\\-]+)(\\.(\\*|[\\w\\-]+))*$";

Pattern PERMISSION_PATTERN = Pattern.compile(PERMISSION_REGEX);

Expand Down

0 comments on commit 807fc51

Please sign in to comment.