Skip to content

Commit

Permalink
Update regex
Browse files Browse the repository at this point in the history
  • Loading branch information
bufdev committed Oct 31, 2024
1 parent 6324800 commit 03ff801
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buf/registry/module/v1/commit.proto
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ message Commit {
// from the license file.
string spdx_license_id = 8 [
(buf.validate.field).string.min_len = 1,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-.]+$",
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-.+]+$",
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
];
}
2 changes: 1 addition & 1 deletion buf/registry/module/v1/upload_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ message UploadRequest {
// detected from the license file, if present.
string spdx_license_id = 5 [
(buf.validate.field).string.min_len = 1,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-.]+$",
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-.+]+$",
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
];
}
Expand Down
2 changes: 1 addition & 1 deletion buf/registry/module/v1beta1/commit.proto
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ message Commit {
// from the license file.
string spdx_license_id = 8 [
(buf.validate.field).string.min_len = 1,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-.]+$",
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-.+]+$",
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
];
}
2 changes: 1 addition & 1 deletion buf/registry/module/v1beta1/upload_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ message UploadRequest {
// detected from the license file, if present.
string spdx_license_id = 5 [
(buf.validate.field).string.min_len = 1,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-.]+$",
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-.+]+$",
(buf.validate.field).ignore = IGNORE_IF_UNPOPULATED
];
}
Expand Down

0 comments on commit 03ff801

Please sign in to comment.