Commit 53057b1
committed
fix(linear): match angle-bracket autolink URL form in attachment/image scan (ABCA-744)
Live-caught on ABCA-744: Linear normalizes a plain `[f](https://…)` link
into the CommonMark autolink form `[f](<https://…>)` on round-trip. The
un-bracketed pattern didn't match, so the uploads.linear.app attachment was
silently dropped — the task ran without it, no error.
Fix both scan patterns to accept optional `<`/`>` around the URL and
exclude `>` from the URL body:
- linear-attachments.MARKDOWN_LINK_OR_IMAGE_PATTERN (authenticated fetch)
- linear-webhook-processor.extractImageUrlAttachments (public-CDN image path)
Adds a regression test asserting the angle-bracket form is matched and the
captured URL excludes the trailing '>'.1 parent ccc66d4 commit 53057b1
3 files changed
Lines changed: 28 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3210 | 3210 | | |
3211 | 3211 | | |
3212 | 3212 | | |
3213 | | - | |
| 3213 | + | |
| 3214 | + | |
| 3215 | + | |
| 3216 | + | |
3214 | 3217 | | |
3215 | 3218 | | |
3216 | 3219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
86 | 91 | | |
87 | | - | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
223 | 238 | | |
224 | 239 | | |
225 | 240 | | |
| |||
0 commit comments