Commit dd4727b
committed
fix(simulator): restrict PID parsing to colon pattern on first line
resolveAppPid scanned all output lines with a bracket regex that matched
3+ digit numbers like [404], causing HTTP status codes to be returned as
PIDs. Restrict to checking only the first non-empty line using the colon
format (e.g. com.example.app: 42567), which is the actual simctl output
pattern.1 parent db7877d commit dd4727b
File tree
2 files changed
+5
-8
lines changed- src/utils
- __tests__
2 files changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
229 | 226 | | |
230 | 227 | | |
231 | 228 | | |
| |||
0 commit comments