-
-
Notifications
You must be signed in to change notification settings - Fork 204
Fix: typing space in Env Variables would lead to crash. + added variable presets for Mango #1208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,7 @@ public void putAll(String values) { | |
| String[] parts = values.split(" "); | ||
| for (String part : parts) { | ||
| int index = part.indexOf("="); | ||
| if (part.isEmpty() || index < 1) continue; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: The new guard prevents crashes on space-containing values but introduces silent data corruption: Prompt for AI agents
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. keyboard will not allow to type spaces. several barriers in place to ensure a space, that could break the environment variable intention, won't go through. Values should not contain spaces, Before this implementation, entering a space would mean a crash. now it blocks it from happening. |
||
| String name = part.substring(0, index); | ||
| String value = part.substring(index+1); | ||
| data.put(name, value); | ||
|
Comment on lines
23
to
29
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: Value field trims on every keystroke, causing incorrect/unnatural entry of spaced env var values.
Prompt for AI agents