Commit 00e9717
committed
Correct regex for metadata 'name' format
The current regex permits strings that end in the newline character,
which is counter to what the description for the field states ("ASCII
letters and numbers, period, underscore and hyphen").
This updates the rexex to use `\Z` instead of `$` to match at the end of
the string and exclude newline characters.1 parent afceaff commit 00e9717
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments