pull/328/head
FabianLars 2 years ago
parent 8d20f7d53e
commit 62af9c13d9
No known key found for this signature in database
GPG Key ID: 3B12BC1DEBF61125

@ -52,13 +52,13 @@ struct Scope {
} }
fn fix_pattern(ac: &AhoCorasick, s: &str) -> String { fn fix_pattern(ac: &AhoCorasick, s: &str) -> String {
let s = ac.replace_all(&s, REPLACE_WITH); let s = ac.replace_all(s, REPLACE_WITH);
if ac.find(&s).is_some() { if ac.find(&s).is_some() {
return fix_pattern(ac, &s); return fix_pattern(ac, &s);
} }
s.to_string() s
} }
pub fn init<R: Runtime>() -> TauriPlugin<R> { pub fn init<R: Runtime>() -> TauriPlugin<R> {

Loading…
Cancel
Save