Commit 9f0e86d
committed
fix(discovery-plugin): handle smallcaps # prefix in readResponseKind
CapData bodies are smallcaps-encoded JSON with a leading '#' marker, so
the previous JSON.parse(body) always threw and the catch returned
undefined — making 'kind !== public' true for every response and
rejecting every public contact as non-public. Match the kind field by
regex against the raw body, the same way extractKref reaches into it.1 parent 968b095 commit 9f0e86d
1 file changed
Lines changed: 4 additions & 7 deletions
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 29 | + | |
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
| |||
0 commit comments