mirror of
https://github.com/actions/setup-python.git
synced 2025-08-26 18:54:19 +00:00
add gm flag
This commit is contained in:
parent
081a3cf1a5
commit
70f9a8ace1
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
@ -38402,7 +38402,7 @@ class PoetryCache extends cache_distributor_1.default {
|
|||||||
const lines = stdout.trim().split('\n');
|
const lines = stdout.trim().split('\n');
|
||||||
const config = {};
|
const config = {};
|
||||||
for (let line of lines) {
|
for (let line of lines) {
|
||||||
line = line.replace(/#.*$/, '');
|
line = line.replace(/#.*$/gm, '');
|
||||||
const [key, value] = line.split('=').map(part => part.trim());
|
const [key, value] = line.split('=').map(part => part.trim());
|
||||||
config[key] = JSON.parse(value);
|
config[key] = JSON.parse(value);
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,7 @@ class PoetryCache extends CacheDistributor {
|
|||||||
const config: any = {};
|
const config: any = {};
|
||||||
|
|
||||||
for (let line of lines) {
|
for (let line of lines) {
|
||||||
line = line.replace(/#.*$/, '');
|
line = line.replace(/#.*$/gm, '');
|
||||||
|
|
||||||
const [key, value] = line.split('=').map(part => part.trim());
|
const [key, value] = line.split('=').map(part => part.trim());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user