Commit 71f95ec
feat(isCurrency): add require_thousands_separator option
Add new option `require_thousands_separator` to enforce thousands separators
in currency values. When enabled, amounts of 1000 or greater must include
thousands separators (e.g., "1,234" is valid but "1234" is invalid).
This is useful for validating financial data where comma separators must
always be present.
Fixes #912
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 88e0d3d commit 71f95ec
3 files changed
Lines changed: 82 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12069 | 12069 | | |
12070 | 12070 | | |
12071 | 12071 | | |
| 12072 | + | |
| 12073 | + | |
| 12074 | + | |
| 12075 | + | |
| 12076 | + | |
| 12077 | + | |
| 12078 | + | |
| 12079 | + | |
| 12080 | + | |
| 12081 | + | |
| 12082 | + | |
| 12083 | + | |
| 12084 | + | |
| 12085 | + | |
| 12086 | + | |
| 12087 | + | |
| 12088 | + | |
| 12089 | + | |
| 12090 | + | |
| 12091 | + | |
| 12092 | + | |
| 12093 | + | |
| 12094 | + | |
| 12095 | + | |
| 12096 | + | |
| 12097 | + | |
| 12098 | + | |
| 12099 | + | |
| 12100 | + | |
| 12101 | + | |
| 12102 | + | |
| 12103 | + | |
| 12104 | + | |
| 12105 | + | |
| 12106 | + | |
| 12107 | + | |
| 12108 | + | |
| 12109 | + | |
| 12110 | + | |
| 12111 | + | |
| 12112 | + | |
| 12113 | + | |
| 12114 | + | |
| 12115 | + | |
| 12116 | + | |
| 12117 | + | |
| 12118 | + | |
| 12119 | + | |
| 12120 | + | |
| 12121 | + | |
| 12122 | + | |
| 12123 | + | |
| 12124 | + | |
| 12125 | + | |
| 12126 | + | |
| 12127 | + | |
| 12128 | + | |
| 12129 | + | |
| 12130 | + | |
| 12131 | + | |
| 12132 | + | |
| 12133 | + | |
| 12134 | + | |
| 12135 | + | |
| 12136 | + | |
| 12137 | + | |
| 12138 | + | |
| 12139 | + | |
| 12140 | + | |
| 12141 | + | |
| 12142 | + | |
| 12143 | + | |
| 12144 | + | |
| 12145 | + | |
| 12146 | + | |
| 12147 | + | |
| 12148 | + | |
12072 | 12149 | | |
12073 | 12150 | | |
12074 | 12151 | | |
| |||
0 commit comments