mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-21 01:23:01 +08:00
improve for https://github.com/rustdesk/rustdesk/issues/4162
This commit is contained in:
parent
5fb026b8d5
commit
51c603a3a6
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user