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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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;