dmesg: support single quoted argument for since/until options.
This commit is contained in:
@@ -493,7 +493,9 @@ impl TryFrom<u32> for Facility {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn remove_enclosing_quotes(value: &str) -> &str {
|
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]
|
&value[1..value.len() - 1]
|
||||||
} else {
|
} else {
|
||||||
value
|
value
|
||||||
|
Reference in New Issue
Block a user