From 6cb6a0072e2257aec6ee68f2f14cd914419a738a Mon Sep 17 00:00:00 2001 From: markszutor Date: Fri, 29 Mar 2024 15:01:15 +0200 Subject: [PATCH] fix(fms): pd format accepts sign (#8582) --- .../FMC/A318HS_FMCMainDisplay.js | 2 +- .../FMC/A319HS_FMCMainDisplay.js | 2 +- .../FMC/A320HS_FMCMainDisplay.js | 2 +- .../FMC/A21NHS_FMCMainDisplay.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hsim-a318ceo/src/base/lvfr-horizonsim-airbus-a318-ceo/html_ui/Pages/VCockpit/Instruments/Airliners/lvfr-horizonsim-airbus-a318-ceo/FMC/A318HS_FMCMainDisplay.js b/hsim-a318ceo/src/base/lvfr-horizonsim-airbus-a318-ceo/html_ui/Pages/VCockpit/Instruments/Airliners/lvfr-horizonsim-airbus-a318-ceo/FMC/A318HS_FMCMainDisplay.js index 499ad1b5..728503da 100644 --- a/hsim-a318ceo/src/base/lvfr-horizonsim-airbus-a318-ceo/html_ui/Pages/VCockpit/Instruments/Airliners/lvfr-horizonsim-airbus-a318-ceo/FMC/A318HS_FMCMainDisplay.js +++ b/hsim-a318ceo/src/base/lvfr-horizonsim-airbus-a318-ceo/html_ui/Pages/VCockpit/Instruments/Airliners/lvfr-horizonsim-airbus-a318-ceo/FMC/A318HS_FMCMainDisplay.js @@ -4600,7 +4600,7 @@ class FMCMainDisplay extends BaseAirliners { } isPdFormat(s) { - const pd = s.match(/^([^\/]+)\/([0-9]{1,3}(\.[0-9])?)$/); + const pd = s.match(/^([^\/]+)\/([\-\+]?[0-9]{1,3}(\.[0-9])?)$/); return pd !== null && this.isPlaceFormat(pd[1]); } diff --git a/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/html_ui/Pages/VCockpit/Instruments/Airliners/lvfr-horizonsim-airbus-a319-ceo/FMC/A319HS_FMCMainDisplay.js b/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/html_ui/Pages/VCockpit/Instruments/Airliners/lvfr-horizonsim-airbus-a319-ceo/FMC/A319HS_FMCMainDisplay.js index 499ad1b5..728503da 100644 --- a/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/html_ui/Pages/VCockpit/Instruments/Airliners/lvfr-horizonsim-airbus-a319-ceo/FMC/A319HS_FMCMainDisplay.js +++ b/hsim-a319ceo/src/base/lvfr-horizonsim-airbus-a319-ceo/html_ui/Pages/VCockpit/Instruments/Airliners/lvfr-horizonsim-airbus-a319-ceo/FMC/A319HS_FMCMainDisplay.js @@ -4600,7 +4600,7 @@ class FMCMainDisplay extends BaseAirliners { } isPdFormat(s) { - const pd = s.match(/^([^\/]+)\/([0-9]{1,3}(\.[0-9])?)$/); + const pd = s.match(/^([^\/]+)\/([\-\+]?[0-9]{1,3}(\.[0-9])?)$/); return pd !== null && this.isPlaceFormat(pd[1]); } diff --git a/hsim-a320ceo/src/base/lvfr-horizonsim-airbus-a320-ceo/html_ui/Pages/VCockpit/Instruments/Airliners/lvfr-horizonsim-airbus-a320-ceo/FMC/A320HS_FMCMainDisplay.js b/hsim-a320ceo/src/base/lvfr-horizonsim-airbus-a320-ceo/html_ui/Pages/VCockpit/Instruments/Airliners/lvfr-horizonsim-airbus-a320-ceo/FMC/A320HS_FMCMainDisplay.js index 499ad1b5..728503da 100644 --- a/hsim-a320ceo/src/base/lvfr-horizonsim-airbus-a320-ceo/html_ui/Pages/VCockpit/Instruments/Airliners/lvfr-horizonsim-airbus-a320-ceo/FMC/A320HS_FMCMainDisplay.js +++ b/hsim-a320ceo/src/base/lvfr-horizonsim-airbus-a320-ceo/html_ui/Pages/VCockpit/Instruments/Airliners/lvfr-horizonsim-airbus-a320-ceo/FMC/A320HS_FMCMainDisplay.js @@ -4600,7 +4600,7 @@ class FMCMainDisplay extends BaseAirliners { } isPdFormat(s) { - const pd = s.match(/^([^\/]+)\/([0-9]{1,3}(\.[0-9])?)$/); + const pd = s.match(/^([^\/]+)\/([\-\+]?[0-9]{1,3}(\.[0-9])?)$/); return pd !== null && this.isPlaceFormat(pd[1]); } diff --git a/hsim-a321neo/src/base/lvfr-horizonsim-airbus-a321-neo/html_ui/Pages/VCockpit/Instruments/Airliners/lvfr-horizonsim-airbus-a321-neo/FMC/A21NHS_FMCMainDisplay.js b/hsim-a321neo/src/base/lvfr-horizonsim-airbus-a321-neo/html_ui/Pages/VCockpit/Instruments/Airliners/lvfr-horizonsim-airbus-a321-neo/FMC/A21NHS_FMCMainDisplay.js index 499ad1b5..728503da 100644 --- a/hsim-a321neo/src/base/lvfr-horizonsim-airbus-a321-neo/html_ui/Pages/VCockpit/Instruments/Airliners/lvfr-horizonsim-airbus-a321-neo/FMC/A21NHS_FMCMainDisplay.js +++ b/hsim-a321neo/src/base/lvfr-horizonsim-airbus-a321-neo/html_ui/Pages/VCockpit/Instruments/Airliners/lvfr-horizonsim-airbus-a321-neo/FMC/A21NHS_FMCMainDisplay.js @@ -4600,7 +4600,7 @@ class FMCMainDisplay extends BaseAirliners { } isPdFormat(s) { - const pd = s.match(/^([^\/]+)\/([0-9]{1,3}(\.[0-9])?)$/); + const pd = s.match(/^([^\/]+)\/([\-\+]?[0-9]{1,3}(\.[0-9])?)$/); return pd !== null && this.isPlaceFormat(pd[1]); }