fix(bls): parser should skip over empty lines and comments

This commit is contained in:
2025-10-24 19:31:01 -07:00
parent 45d7cd2d3b
commit 057c48f9f7

View File

@@ -36,6 +36,11 @@ impl FromStr for BlsEntry {
// Trim the line.
let line = line.trim();
// Skip over empty lines and comments.
if line.is_empty() || line.starts_with('#') {
continue;
}
// Split the line once by whitespace.
let Some((key, value)) = line.split_once(char::is_whitespace) else {
continue;