Commit 2a2d152
committed
feat(validation): enhance Decimal and FormalName with sophisticated validation
- Add state tracking to Decimal function to prevent malformed decimals
- Validate minus sign placement and decimal point uniqueness
- Enhance FormalName function to support Unicode letters for international names
- Update comprehensive test suite with enhanced validation edge cases
- Add Unicode test coverage for international name formats
- Maintain excellent performance characteristics (sub-microsecond execution)1 parent 8ed7d4b commit 2a2d152
2 files changed
Lines changed: 39 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
| 243 | + | |
243 | 244 | | |
244 | 245 | | |
245 | 246 | | |
246 | 247 | | |
247 | 248 | | |
248 | | - | |
| 249 | + | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
| |||
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
263 | 269 | | |
264 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
265 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
266 | 284 | | |
267 | 285 | | |
268 | 286 | | |
| |||
440 | 458 | | |
441 | 459 | | |
442 | 460 | | |
443 | | - | |
| 461 | + | |
| 462 | + | |
444 | 463 | | |
445 | 464 | | |
446 | 465 | | |
| |||
452 | 471 | | |
453 | 472 | | |
454 | 473 | | |
455 | | - | |
| 474 | + | |
456 | 475 | | |
457 | 476 | | |
458 | 477 | | |
| |||
461 | 480 | | |
462 | 481 | | |
463 | 482 | | |
464 | | - | |
465 | | - | |
| 483 | + | |
466 | 484 | | |
467 | 485 | | |
468 | 486 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
| 243 | + | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
247 | 253 | | |
248 | 254 | | |
249 | 255 | | |
| |||
489 | 495 | | |
490 | 496 | | |
491 | 497 | | |
492 | | - | |
| 498 | + | |
493 | 499 | | |
494 | 500 | | |
495 | 501 | | |
| |||
498 | 504 | | |
499 | 505 | | |
500 | 506 | | |
501 | | - | |
502 | | - | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
503 | 512 | | |
504 | 513 | | |
505 | 514 | | |
| |||
0 commit comments