Lines 188-194
Link Here
|
188 |
|
188 |
|
189 |
function normalizeSMS(value){ |
189 |
function normalizeSMS(value){ |
190 |
let has_plus = value.charAt(0) === '+'; |
190 |
let has_plus = value.charAt(0) === '+'; |
191 |
let new_value = value.replace(/[^0-9]+/g, ''); |
191 |
let new_value = value.replace(/\D/g,''); |
192 |
if ( has_plus ) new_value = '+' + new_value; |
192 |
if ( has_plus ) new_value = '+' + new_value; |
193 |
return new_value; |
193 |
return new_value; |
194 |
} |
194 |
} |
195 |
- |
|
|