Skip to content

Commit 72ad89c

Browse files
randomirjankeromnes
andcommitted
Reduce env var value UI limit to 32k-1 for consistency
Co-authored-by: Jan Keromnes <janx@linux.com>
1 parent e41a76d commit 72ad89c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/gitpod-protocol/src/protocol.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ export namespace UserEnvVar {
251251
if (variable.value.trim() === "") {
252252
return "Value must not be empty.";
253253
}
254-
if (variable.value.length > 32768) {
255-
return 'Value too long. Maximum value length is 32768 characters.';
254+
if (variable.value.length > 32767) {
255+
return 'Value too long. Maximum value length is 32767 characters.';
256256
}
257257
if (pattern.trim() === "") {
258258
return "Scope must not be empty.";

0 commit comments

Comments
 (0)