diff --git a/src/platform/linux.rs b/src/platform/linux.rs index e7a4bc518..ea0ec0f81 100644 --- a/src/platform/linux.rs +++ b/src/platform/linux.rs @@ -789,7 +789,7 @@ pub fn resolutions(name: &str) -> Vec { if let Some(caps) = re.captures(&xrandr_output) { if let Some(resolutions) = caps.name("resolutions") { let resolution_pat = - r"\s*(?P\d+)x(?P\d+)\s+(?P(\d+\.\d+[*+ ]*)+)\s*\n"; + r"\s*(?P\d+)x(?P\d+)\s+(?P(\d+\.\d+[\S ]*)+)\s*\n"; let resolution_re = Regex::new(&format!(r"{}", resolution_pat)).unwrap(); for resolution_caps in resolution_re.captures_iter(resolutions.as_str()) { if let Some((width, height)) =