fix #4163
This commit is contained in:
parent
65347092ad
commit
9cc09c620f
1 changed files with 0 additions and 5 deletions
|
|
@ -37,11 +37,6 @@ pub fn get_license_from_string(s: &str) -> ResultType<License> {
|
|||
s
|
||||
};
|
||||
if s.contains("host=") {
|
||||
let s = if s.contains("#") {
|
||||
&s[0..s.find("#").unwrap_or(s.len())]
|
||||
} else {
|
||||
s
|
||||
};
|
||||
let strs: Vec<&str> = s.split("host=").collect();
|
||||
if strs.len() == 2 {
|
||||
let strs2: Vec<&str> = strs[1].split(",key=").collect();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue