From 057c48f9f788e7b5cbe789cad34fa5979058b8d3 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Fri, 24 Oct 2025 19:31:01 -0700 Subject: [PATCH] fix(bls): parser should skip over empty lines and comments --- src/generators/bls/entry.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/generators/bls/entry.rs b/src/generators/bls/entry.rs index 88790cc..f9c85c0 100644 --- a/src/generators/bls/entry.rs +++ b/src/generators/bls/entry.rs @@ -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;