Commit eb60b23
refactor: precompile host-app version regex and clarify test comments
- Use re.fullmatch() with module-level precompiled _HOST_APP_VERSION_RE
instead of re.match() with anchors on every call
- Add comments clarifying behavior for invalid version (silently dropped)
and invalid app name (host-app omitted entirely)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 58cfe4c commit eb60b23
File tree
2 files changed
+5
-3
lines changed- src/fabric_cli/client
- tests/test_core
2 files changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
338 | 340 | | |
339 | 341 | | |
340 | 342 | | |
341 | | - | |
342 | | - | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| 334 | + | |
334 | 335 | | |
335 | 336 | | |
336 | 337 | | |
| |||
422 | 423 | | |
423 | 424 | | |
424 | 425 | | |
| 426 | + | |
425 | 427 | | |
426 | 428 | | |
427 | 429 | | |
| |||
0 commit comments