Skip to content

fix picture string parsing for $formatNumber#788

Merged
mattbaileyuk merged 1 commit intomasterfrom
format_number
May 5, 2026
Merged

fix picture string parsing for $formatNumber#788
mattbaileyuk merged 1 commit intomasterfrom
format_number

Conversation

@andrew-coleman
Copy link
Copy Markdown
Member

In $formatNumber(), if a picture string part contains no prefix or suffix, the parsing code should assign an empty string, which will subsequently throw error D3086. Instead it is leaking the Javascript error attempting to get the length of an undefined value.

resolved #786

In `$formatNumber()`, if a picture string part contains no prefix or suffix, the parsing code should assign an empty string, which will subsequently throw error D3086. Instead it is leaking the Javascript error attempting to get the length of an undefined value.

Signed-off-by: Andrew Coleman <andrew_coleman@uk.ibm.com>
@mattbaileyuk mattbaileyuk merged commit 9588fb4 into master May 5, 2026
9 checks passed
@mattbaileyuk mattbaileyuk deleted the format_number branch May 5, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

$formatNumber crashes with undefined error code for certain invalid picture strings

2 participants