Files
jadb/lib/_data_ingestion/radkfile/parser.dart
h7x4 8d742b92be
Some checks failed
Build and test / build (push) Has been cancelled
flake.nix: pull tanos jlpt data from datasources repo
2026-04-08 13:34:25 +09:00

13 lines
265 B
Dart

import 'dart:io';
Iterable<String> parseRADKFILEBlocks(File radkfile) {
final String content = radkfile.readAsStringSync();
final Iterable<String> blocks = content
.replaceAll(RegExp(r'^#.*$'), '')
.split(r'$')
.skip(2);
return blocks;
}