Skip to content

Commit

Permalink
Fix compiler-explorer#5847 : allow equal-chars while parsing env vars (
Browse files Browse the repository at this point in the history
  • Loading branch information
OfekShilon authored Dec 15, 2023
1 parent 1c23ecc commit f8dd324
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion static/styles/explorer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ div.populararguments div.dropdown-menu {

@media (max-width: 1000px) {
#ces {
display: none
display: none;
}
}

Expand Down
8 changes: 4 additions & 4 deletions static/widgets/runtime-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ export class RuntimeToolsWidget {
return options
.split('\n')
.map(env => {
const arr = env.split('=');
if (arr[0]) {
const firstEqPos = env.indexOf('=');
if (firstEqPos !== -1) {
return {
name: arr[0],
value: arr[1],
name: env.substring(0, firstEqPos),
value: env.substring(firstEqPos + 1),
};
} else {
return false;
Expand Down

0 comments on commit f8dd324

Please sign in to comment.