dmesg: support single quoted argument for since/until options.

This commit is contained in:
Fuad Ismail
2024-12-12 13:17:57 +07:00
parent 260cfbfd55
commit 9e99aad01b

View File

@@ -493,7 +493,9 @@ impl TryFrom<u32> for Facility {
}
fn remove_enclosing_quotes(value: &str) -> &str {
if value.starts_with('"') && value.ends_with('"') {
if (value.starts_with('"') || value.starts_with('\''))
&& (value.ends_with('"') || value.ends_with('\''))
{
&value[1..value.len() - 1]
} else {
value