Commit 1198de7
refactor(extensions): extract compiled command name regex constant
Replace two raw re.match() calls with a single class-level compiled
constant _COMMAND_NAME_RE. Removes duplicated pattern string and avoids
recompiling the regex on every command validated during install.
Also drops inline comments that restated the docstring.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ecb2478 commit 1198de7
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
153 | | - | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
181 | | - | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | 184 | | |
186 | | - | |
| 185 | + | |
187 | 186 | | |
188 | 187 | | |
189 | 188 | | |
| |||
0 commit comments