Skip to content

Commit

Permalink
Fix output for prerelease version of poetry (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-shibanov authored May 31, 2022
1 parent 397252c commit 3f82819
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63920,7 +63920,7 @@ class PoetryCache extends cache_distributor_1.default {
const lines = stdout.trim().split('\n');
const config = {};
for (let line of lines) {
line = line.replace(/#.*$/, '');
line = line.replace(/#.*$/gm, '');
const [key, value] = line.split('=').map(part => part.trim());
config[key] = JSON.parse(value);
}
Expand Down
2 changes: 1 addition & 1 deletion src/cache-distributions/poetry-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class PoetryCache extends CacheDistributor {
const config: any = {};

for (let line of lines) {
line = line.replace(/#.*$/, '');
line = line.replace(/#.*$/gm, '');

const [key, value] = line.split('=').map(part => part.trim());

Expand Down

0 comments on commit 3f82819

Please sign in to comment.