JS `String.replace(/->/g,'.').replace(/\s+/g,'')` used on receivers.
(s: &str)
| 299 | |
| 300 | /// JS `String.replace(/->/g,'.').replace(/\s+/g,'')` used on receivers. |
| 301 | fn arrow_dot_no_ws(s: &str) -> String { |
| 302 | s.replace("->", ".").chars().filter(|c| !c.is_whitespace()).collect() |
| 303 | } |
| 304 | |
| 305 | #[derive(Clone, Copy, PartialEq, Eq)] |
| 306 | pub enum Variant { |