Skip to content

Commit eed8ba0

Browse files
author
Rin
committed
perf: improve regex robustness for deprecation links
1 parent 9c9c6d7 commit eed8ba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fetch-wrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default function fetchWrapper(
5858

5959
if ("deprecation" in headers) {
6060
const matches =
61-
headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/);
61+
headers.link && headers.link.match(/<([^<>]+)>; rel="deprecation"/);
6262
const deprecationLink = matches && matches.pop();
6363
log.warn(
6464
`[@octokit/request] "${requestOptions.method} ${

0 commit comments

Comments
 (0)