(text: &str)
| 331 | out.push_str(&text[pos..]); |
| 332 | return out; |
| 333 | } |
| 334 | format!("{text}\n[Frame0]\n{block}[/Frame0]\n") |
| 335 | } |
| 336 | |
| 337 | pub fn sanitize_file_stem(text: &str) -> String { |
| 338 | let out = text |
| 339 | .chars() |
| 340 | .map(|ch| { |
| 341 | if ch.is_ascii_alphanumeric() || ch == '_' || ch == '-' { |
| 342 | ch |
| 343 | } else { |
| 344 | '_' |
| 345 | } |
| 346 | }) |
| 347 | .collect::<String>(); |
| 348 | out.trim_matches('_').to_ascii_lowercase() |
no outgoing calls
no test coverage detected