improve for https://github.com/rustdesk/rustdesk/issues/4162
This commit is contained in:
parent
5fb026b8d5
commit
51c603a3a6
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue