You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnErr(DmiError::BlockEntry(format!("Line with value '{line}' starts quotes after the first character in its value. This is not allowed.")));
108
111
}
109
112
quoted = !quoted;
113
+
used_quotes = true;
110
114
continue;
111
115
}
112
116
}
@@ -117,11 +121,11 @@ fn parse_dmi_line(
117
121
}
118
122
_ => {}
119
123
}
120
-
if allow_quotes && require_quotes && !quoted {
121
-
returnErr(DmiError::Generic(format!("Line with value '{line}' is required to have quotes after the equals sign, but does not quote all its contents!")));
122
-
}
123
124
post_equals.push(char);
124
125
}
126
+
if allow_quotes && require_quotes && !used_quotes {
127
+
returnErr(DmiError::Generic(format!("Line with value '{line}' is required to have quotes after the equals sign, but does not wrap its contents in quotes!")));
0 commit comments