mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 15:20:17 +00:00
fix(bls): parsing of entries should split by whitespace, not just spaces
This commit is contained in:
@@ -36,8 +36,8 @@ impl FromStr for BlsEntry {
|
|||||||
// Trim the line.
|
// Trim the line.
|
||||||
let line = line.trim();
|
let line = line.trim();
|
||||||
|
|
||||||
// Split the line once by a space.
|
// Split the line once by whitespace.
|
||||||
let Some((key, value)) = line.split_once(" ") else {
|
let Some((key, value)) = line.split_once(char::is_whitespace) else {
|
||||||
continue;
|
continue;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user