Skip to content

Commit

Permalink
Merge pull request #2651 from EvenMoreIrrelevance/dev
Browse files Browse the repository at this point in the history
Fix #2650
  • Loading branch information
PEZ authored Oct 17, 2024
2 parents a095df0 + 8f446db commit de2b759
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Changes to Calva.

## [Unreleased]
- Fix: [Only the first environment variable is resolved in jackInEnvironment](https://github.com/BetterThanTomorrow/calva/issues/2650)

- Fix: [ns inner blocks are kept on the same line by default when using the clean ns command](https://github.com/BetterThanTomorrow/calva/issues/2648)

Expand Down
2 changes: 1 addition & 1 deletion src/nrepl/jack-in.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import * as inspector from '../providers/inspector';

function resolveEnvVariables(entry: any): any {
if (typeof entry === 'string') {
const s = entry.replace(/\$\{env:(\w+)\}/, (_, v) => (process.env[v] ? process.env[v] : ''));
const s = entry.replace(/\$\{env:(\w+)\}/g, (_, v) => (process.env[v] ? process.env[v] : ''));
return s;
} else {
return entry;
Expand Down

0 comments on commit de2b759

Please sign in to comment.