View | Details | Raw Unified | Return to bug 22862
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt (-2 / +1 lines)
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
- 

Return to bug 22862