mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-09 11:11:28 +03:00
improve for https://github.com/rustdesk/rustdesk/issues/4162
This commit is contained in:
@@ -82,6 +82,12 @@ pub fn get_license_from_string(s: &str) -> ResultType<License> {
|
|||||||
for s in strs {
|
for s in strs {
|
||||||
if let Ok(lic) = get_license_from_string_(s) {
|
if let Ok(lic) = get_license_from_string_(s) {
|
||||||
return Ok(lic);
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user