Skip to content

Commit

Permalink
Bug: tsc bug 수정
Browse files Browse the repository at this point in the history
- npm i 중 yarn compile 할 때 버그 발생
  • Loading branch information
imjihun committed Jan 9, 2023
1 parent 9737ed3 commit 7d7ebef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const getPreviewData = async (text: string, requestTimeout = 5000) => {
let matches: RegExpMatchArray | null
const meta: RegExpMatchArray[] = []
while ((matches = REGEX_META.exec(head)) !== null) {
meta.push([...matches])
meta.push([...matches] as RegExpMatchArray)
}

const metaPreviewData = meta.reduce<{
Expand Down Expand Up @@ -164,7 +164,7 @@ export const getPreviewData = async (text: string, requestTimeout = 5000) => {
let imageMatches: RegExpMatchArray | null
const tags: RegExpMatchArray[] = []
while ((imageMatches = REGEX_IMAGE_TAG.exec(html)) !== null) {
tags.push([...imageMatches])
tags.push([...imageMatches] as RegExpMatchArray)
}

let images: PreviewDataImage[] = []
Expand Down

0 comments on commit 7d7ebef

Please sign in to comment.