This commit is contained in:
rustdesk 2024-02-16 00:43:08 +08:00
parent 5fb026b8d5
commit 51c603a3a6

View File

@ -82,6 +82,12 @@ pub fn get_license_from_string(s: &str) -> ResultType<License> {
for s in strs {
if let Ok(lic) = get_license_from_string_(s) {
return Ok(lic);
} else if s.contains("(") { // https://github.com/rustdesk/rustdesk/issues/4162
for s in s.split("(") {
if let Ok(lic) = get_license_from_string_(s) {
return Ok(lic);
}
}
}
}
}