зеркало из
1
0
Форкнуть 0
communication-ui-library/common/scripts/changelog/utils.mjs

11 строки
404 B
JavaScript

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const NEW_CHANGE_FILE_REGEXP = /\s*change\/(.*\.json)\s*/;
export function parseNewChangeFiles(stdout) {
const lines = stdout.split('\n');
const matches = lines.map(line => line.match(NEW_CHANGE_FILE_REGEXP)).filter(match => !!match);
// Extract the first capture group.
return matches.map(match => match[1]);
}