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