Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utils/documents.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
}

// find all instances of markdown inline images
const markdownInlineImageRegex = /\!(\[([^\]]+)\]\(([^)]+)\))/g

Check warning on line 233 in src/utils/documents.server.ts

View workflow job for this annotation

GitHub Actions / PR

eslint(no-useless-escape)

Unnecessary escape character '!'
const inlineMarkdownImageMatches = text.matchAll(markdownInlineImageRegex)
for (const match of inlineMarkdownImageMatches) {
const [fullMatch, _, __, src] = match
Expand Down Expand Up @@ -578,7 +578,7 @@
const fetchOptions: RequestInit = {
headers: {
'X-GitHub-Api-Version': '2022-11-28',
Authorization: `Bearer ${env.GITHUB_AUTH_TOKEN}`,
Authorization: `token ${env.GITHUB_AUTH_TOKEN}`,
},
}
const res = await fetch(
Expand Down
Loading