Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maybe it should returns error when there are lines without = #106

Open
WindSoilder opened this issue May 26, 2023 · 0 comments · May be fixed by #107
Open

Maybe it should returns error when there are lines without = #106

WindSoilder opened this issue May 26, 2023 · 0 comments · May be fixed by #107

Comments

@WindSoilder
Copy link

given the following example:

use ini::Ini;
fn main() {
    let tmp = Ini::load_from_str(
        r#"
"[options]
PgpFetch
DevelSuffixes = -git"#,
    );
    println!("{tmp:?}");
}

Currently what it returns: Ok(Ini { sections: {None: Properties { data: {"\"[options]\nPgpFetch\nDevelSuffixes": "-git"} }} }).
The first line doesn't contains =, I think it should returns error rather than return a property key which contains \n.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant