From 70f9a8ace184ba11ebcf1958439c8eb5524d34d2 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Thu, 26 May 2022 09:02:39 +0200 Subject: [PATCH] add gm flag --- dist/setup/index.js | 2 +- src/cache-distributions/poetry-cache.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 6c83cfb1..4c1329ef 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -38402,7 +38402,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 58aa5fd9..5e22b5dd 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());