We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62c2a47 commit b9ba09fCopy full SHA for b9ba09f
registry/src/registry_helper.rs
@@ -287,8 +287,7 @@ fn get_product_name() {
287
let reg_config = reg_helper.get().unwrap();
288
assert_eq!(reg_config.key_path, r#"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion"#);
289
assert_eq!(reg_config.value_name, Some("ProductName".to_string()));
290
- // value data starts with "Windows 10"
291
- assert!(matches!(reg_config.value_data, Some(RegistryValueData::String(s)) if s.starts_with("Windows 10")));
+ assert!(matches!(reg_config.value_data, Some(RegistryValueData::String(s)) if s.starts_with("Windows ")));
292
}
293
294
#[test]
0 commit comments