Fix output for prerelease version of poetry (#409)

This commit is contained in:
Dmitry Shibanov 2022-05-31 15:48:54 +02:00 committed by GitHub
parent 397252c582
commit 3f82819745
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
dist/setup/index.js vendored
View file

@ -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);
}

View file

@ -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());