Skip to content

Commit 3f82819

Browse files
Fix output for prerelease version of poetry (#409)
1 parent 397252c commit 3f82819

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/setup/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63920,7 +63920,7 @@ class PoetryCache extends cache_distributor_1.default {
6392063920
const lines = stdout.trim().split('\n');
6392163921
const config = {};
6392263922
for (let line of lines) {
63923-
line = line.replace(/#.*$/, '');
63923+
line = line.replace(/#.*$/gm, '');
6392463924
const [key, value] = line.split('=').map(part => part.trim());
6392563925
config[key] = JSON.parse(value);
6392663926
}

src/cache-distributions/poetry-cache.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class PoetryCache extends CacheDistributor {
5858
const config: any = {};
5959

6060
for (let line of lines) {
61-
line = line.replace(/#.*$/, '');
61+
line = line.replace(/#.*$/gm, '');
6262

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

0 commit comments

Comments
 (0)