Skip to content

Conversation

andybloomf
Copy link

@andybloomf andybloomf commented Apr 30, 2025

Include additional logic to check if separatorPrecision is Infinity or not before checking if > 0

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Issue Number: #1532

What is the new behavior?

Additonal logic check for separatorPrecision

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

…"toFixed() digits argument must be between 0 and 100"

Include additional logic to check if separatorPrecision is Infinity or not before checking if > 0
@andybloomf andybloomf marked this pull request as ready for review April 30, 2025 13:30
@andybloomf andybloomf marked this pull request as draft April 30, 2025 13:41
@andybloomf andybloomf marked this pull request as ready for review April 30, 2025 13:47
@andriikamaldinov1
Copy link
Collaborator

@andybloomf Thanks for using Ngx-mask. Please write tests that fix your cases, so that nothing breaks in the future.

@andybloomf
Copy link
Author

@andriikamaldinov1 New test created

@andybloomf andybloomf closed this Jul 15, 2025
@andybloomf andybloomf reopened this Jul 15, 2025
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.

2 participants