Skip to content

Commit

Permalink
Merge pull request Permify#763 from ahmethakanbesel/update-id-patterns
Browse files Browse the repository at this point in the history
refactor: update id patterns
  • Loading branch information
tolgaOzen committed Oct 20, 2023
2 parents 236b165 + 6a825f3 commit 9e39bb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proto/base/v1/base.proto
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ message Entity {
string id = 2 [
json_name = "id",
(validate.rules).string = {
pattern: "^(([a-zA-Z0-9_][a-zA-Z0-9_|-]{0,127})|\\*)$",
pattern: "^(?=.{1,128}$)[a-zA-Z0-9]+[~\/@#_.:=|-]?[a-zA-Z0-9_|-]+$",
max_bytes: 128,
}
];
Expand Down Expand Up @@ -376,7 +376,7 @@ message Subject {
string id = 2 [
json_name = "id",
(validate.rules).string = {
pattern: "^(([a-zA-Z0-9_][a-zA-Z0-9_|-]{0,127})|\\*)$",
pattern: "^(?=.{1,128}$)[a-zA-Z0-9]+[~\/@#_.:=|-]?[a-zA-Z0-9_|-]+$",
max_bytes: 128,
}
];
Expand Down

0 comments on commit 9e39bb8

Please sign in to comment.