Update functions.php

This commit is contained in:
FusionPBX
2019-11-15 11:49:21 -07:00
committed by GitHub
parent 36f976898c
commit 3687896a90

View File

@@ -1656,7 +1656,12 @@ function number_pad($number,$n) {
}
//add prefix
if (strlen($prefix) > 0) {
$prefix = $prefix.'?';
if (strlen($prefix) == 1) {
$prefix = $prefix.'?';
}
else {
$prefix = '(?:'.$prefix.')?';
}
}
//convert N,X,Z syntax to regex
$string = str_ireplace("N", "[2-9]", $string);