Skip to content

Ignore misplaced negative signs in number formatter - #156

Merged
TrySound merged 1 commit into
mainfrom
fix-misplaced-negative-sign
Aug 29, 2026
Merged

Ignore misplaced negative signs in number formatter#156
TrySound merged 1 commit into
mainfrom
fix-misplaced-negative-sign

Conversation

@TrySound

Copy link
Copy Markdown
Owner

Summary

  • recognize a number as negative only when its minus sign is leading
  • ignore minus signs entered in the middle without truncating digits
  • add unit and browser regression coverage

Fixes #127.

Verification

  • pnpm run test:unit
  • pnpm run test:browser
  • pnpm run test:ts

@TrySound
TrySound merged commit 0a83161 into main Aug 29, 2026
3 checks passed
@TrySound
TrySound deleted the fix-misplaced-negative-sign branch August 29, 2026 15:14
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.

negative number format getting truncated

1 participant