Commit b1015f6
committed
fix: split key_prefix validation into two separate validators
Per review by @deiga: use two StringMatch validators inside
validation.All() — one for allowed characters (^[a-zA-Z0-9.=+:/#_-]+$)
and one for the digit-suffix check (\D$) — instead of a single
combined regex. This makes the error messages more precise.1 parent c3b0efd commit b1015f6
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
75 | 81 | | |
76 | 82 | | |
77 | 83 | | |
| |||
0 commit comments