You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use wasm_bindgen::prelude::*;usesuper::filter::Filter;#[wasm_bindgen]implFilter{pubfnreplace(&mutself,content:String) -> String{letmut censored = // String Content
let ranges = ...// Vector of Ranges
for range inranges{
censored.replace_range(range,"*");}
censored
}}
🌍 Your environment
Intel Mac
wasm-pack and rustc version:
The text was updated successfully, but these errors were encountered:
🐛 Bug description
String::replace_range(&mut self)
leads to RuntimeError: unreachable🤔 Expected Behavior
The range should be replaced without assertions
👟 Steps to reproduce/ MRE
🌍 Your environment
Intel Mac
wasm-pack and rustc version:
The text was updated successfully, but these errors were encountered: