shooshtime fix

This commit is contained in:
Simon
2026-03-23 13:46:55 +00:00
parent 90ce9c684b
commit 99fe4c947c
5 changed files with 417 additions and 11 deletions

View File

@@ -165,7 +165,10 @@ impl DoodstreamProxy {
let token_regex = Self::regex(r"\b[0-9a-z]+\b")?;
payload = token_regex
.replace_all(&payload, |captures: &Captures| {
let token = captures.get(0).map(|value| value.as_str()).unwrap_or_default();
let token = captures
.get(0)
.map(|value| value.as_str())
.unwrap_or_default();
let Some(index) = Self::decode_base36(token) else {
return token.to_string();
};