mirror of
https://gitlab.com/TheOneWithTheBraid/dart_pkpass.git
synced 2025-07-05 12:58:47 +00:00
10 lines
344 B
Dart
10 lines
344 B
Dart
abstract class LProjParser {
|
|
const LProjParser._();
|
|
static Map<String, String> parse(String stringsFile) => Map.fromEntries(
|
|
RegExp(r'"((?:\\"|[^"])*)"\s?=\s?"((?:\\"|[^"])*)"\s?;')
|
|
.allMatches(stringsFile)
|
|
.map(
|
|
(match) => MapEntry(match.group(1)!, match.group(2)!),
|
|
),
|
|
);
|
|
}
|