Visitar URL original
fix(isCurrency): handle unicode/nbsp spaces by whoalin1 · Pull Request #2908 · validatorjs/validator.js · GitHub
Skip to content

fix(isCurrency): handle unicode/nbsp spaces - #2908

Open
whoalin1 wants to merge 1 commit into
validatorjs:masterfrom
whoalin1:cursor/fix-currency-unicode-space-928f
Open

whoalin1 wants to merge 1 commit into
validatorjs:masterfrom
whoalin1:cursor/fix-currency-unicode-space-928f

Conversation

@whoalin1

@whoalin1 whoalin1 commented Oct 6, 2026

Copy link
Copy Markdown

Related to #2190 — treat unicode spaces in currency validation.

Treat U+00A0 and U+202F like a normal space when a space is the
thousands separator or the optional gap around the symbol.

Co-authored-by: whoalin1 <whoalin1@users.noreply.github.com>
@codecov

codecov Bot commented Oct 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9ff3424) to head (4ca2852).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #2908   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          114       114           
  Lines         2599      2604    +5     
  Branches       658       659    +1     
=========================================
+ Hits          2599      2604    +5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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