Skip to content

Commit

Permalink
Reduce env var value UI limit to 32k-1 for consistency
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Keromnes <janx@linux.com>
  • Loading branch information
randomir and jankeromnes committed May 4, 2022
1 parent e41a76d commit 72ad89c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/gitpod-protocol/src/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ export namespace UserEnvVar {
if (variable.value.trim() === "") {
return "Value must not be empty.";
}
if (variable.value.length > 32768) {
return 'Value too long. Maximum value length is 32768 characters.';
if (variable.value.length > 32767) {
return 'Value too long. Maximum value length is 32767 characters.';
}
if (pattern.trim() === "") {
return "Scope must not be empty.";
Expand Down

0 comments on commit 72ad89c

Please sign in to comment.