off by one fix
This commit is contained in:
parent
cc4f8a2478
commit
8c7dd287f1
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ pub fn transform_ua(input: &str) -> String {
|
|||
return x.to_owned();
|
||||
}
|
||||
if input.contains("+http") {
|
||||
return input[input.rfind("+http").unwrap()..=input.rfind(')').unwrap_or(input.len())]
|
||||
return input[input.rfind("+http").unwrap()..input.rfind(')').unwrap_or(input.len())]
|
||||
.to_owned();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue