Skip to content

fix(auctions): reject partial dollar amounts#40

Merged
ralyodio merged 1 commit into
moshcoder:masterfrom
aiirvizionz:clientkit/bid-amount-decimal
Jul 20, 2026
Merged

fix(auctions): reject partial dollar amounts#40
ralyodio merged 1 commit into
moshcoder:masterfrom
aiirvizionz:clientkit/bid-amount-decimal

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • centralizes dollar-to-cents parsing for bid and auction routes
  • rejects partial/non-decimal amount strings such as 1abc, 1e2, and 0x10
  • preserves existing support for $1.25, comma-separated dollar values, and numeric inputs

Tests

  • node --test tests\money.test.mjs
  • node --test tests\affiliate-commission.test.mjs tests\http-range.test.mjs tests\url-guard.test.mjs
  • node_modules\.bin\tsc.CMD -p tsconfig.json --noEmit

@ralyodio
ralyodio merged commit 385b99a into moshcoder:master Jul 20, 2026
2 checks passed
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