off by one fix

This commit is contained in:
Tove 2025-12-22 22:38:06 +01:00
parent cc4f8a2478
commit 8c7dd287f1
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -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();
}