Skip to content

Commit

Permalink
fix(fms): pd format accepts sign (#8582)
Browse files Browse the repository at this point in the history
  • Loading branch information
markszutor committed Mar 29, 2024
1 parent b3b99ed commit 6cb6a00
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand Down

0 comments on commit 6cb6a00

Please sign in to comment.