When finding matches add regular expression matching

This commit is contained in:
FusionPBX
2023-10-21 10:11:49 -06:00
committed by GitHub
parent f09efd3a14
commit 032673c922

View File

@@ -101,7 +101,7 @@
}
//find all other matching actions
if ($value['extension'] == $detail_action) {
if ($value['extension'] == $detail_action or preg_match('/^'.$value['extension'].'$/', $detail_action)) {
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/".$application."/app_languages.php")) {
$value['application'] = $application;
return $value;