Commit c6b2fc0
fix: reject trailing newline in tool-name validation
With re.match, a $-anchored pattern also matches just before a single
trailing newline, so tool-name validation accepted "name\n" without a
SEP-986 warning. Switch to re.fullmatch. Backport of #3076.
Co-authored-by: otiscuilei <otiscui@icloud.com>1 parent ba33472 commit c6b2fc0
2 files changed
Lines changed: 6 additions & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| 78 | + | |
| 79 | + | |
75 | 80 | | |
76 | 81 | | |
77 | 82 | | |
| |||
0 commit comments