Create a fully masked pattern by replacing all digits with dots
(pattern: &str)
| 154 | |
| 155 | /// Create a fully masked pattern by replacing all digits with dots |
| 156 | fn create_fully_masked_pattern(pattern: &str) -> String { |
| 157 | pattern.chars() |
| 158 | .map(|c| if c.is_digit(10) { '•' } else { c }) |
| 159 | .collect() |
| 160 | } |
| 161 | |
| 162 | // Extract visible country code from an international format masked phone number |
| 163 | fn extract_visible_country_code(masked_phone: &str) -> String { |
no outgoing calls