2024-05-23 09:42:14 +00:00
|
|
|
// SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2021-05-01 16:30:21 +00:00
|
|
|
function parseConfigUUIDs (s: string): string[] {
|
|
|
|
if (!s) {
|
|
|
|
return []
|
|
|
|
}
|
|
|
|
let a = s.split('\n')
|
|
|
|
a = a.map(line => {
|
|
|
|
return line.replace(/#.*$/, '')
|
|
|
|
.replace(/^\s+/, '')
|
|
|
|
.replace(/\s+$/, '')
|
|
|
|
})
|
|
|
|
return a.filter(line => line !== '')
|
|
|
|
}
|
|
|
|
|
|
|
|
export {
|
|
|
|
parseConfigUUIDs
|
|
|
|
}
|