Commit 03de43f
authored
fix: relax NATIONAL_ID regex to accept short codes like DCC (#2167)
* fix: relax NATIONAL_ID external reference regex to accept short codes
The national ID regex required 5-20 characters, rejecting legitimate
short codes like DCC (3 chars), GETW (4 chars), and SEPD (4 chars)
used in the PAYG energy manifest. This caused the nightly Demo Reset
workflow to fail on every run since the PAYG tenant was added.
Lowered the minimum from 5 to 2 characters.
* fix: update boundary tests for relaxed NATIONAL_ID regex
Update minimum length test to use 2-char reference and too-short test
to use 1-char reference, matching the new {2,20} constraint.
---------
Co-authored-by: Ben Coombs <bjcoombs@users.noreply.github.com>1 parent 43dddc7 commit 03de43f
2 files changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
610 | | - | |
611 | | - | |
| 610 | + | |
| 611 | + | |
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
520 | 526 | | |
521 | 527 | | |
522 | 528 | | |
| |||
0 commit comments