diff --git a/dist/setup/index.js b/dist/setup/index.js index b664896be..60ad85859 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -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); } diff --git a/src/cache-distributions/poetry-cache.ts b/src/cache-distributions/poetry-cache.ts index 58aa5fd97..5e22b5dd7 100644 --- a/src/cache-distributions/poetry-cache.ts +++ b/src/cache-distributions/poetry-cache.ts @@ -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());