mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-21 18:36:31 +00:00
Update functions.php
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user