File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ export const getPreviewData = async (text: string, requestTimeout = 5000) => {
122122 let matches : RegExpMatchArray | null
123123 const meta : RegExpMatchArray [ ] = [ ]
124124 while ( ( matches = REGEX_META . exec ( head ) ) !== null ) {
125- meta . push ( [ ...matches ] )
125+ meta . push ( [ ...matches ] as RegExpMatchArray )
126126 }
127127
128128 const metaPreviewData = meta . reduce < {
@@ -164,7 +164,7 @@ export const getPreviewData = async (text: string, requestTimeout = 5000) => {
164164 let imageMatches : RegExpMatchArray | null
165165 const tags : RegExpMatchArray [ ] = [ ]
166166 while ( ( imageMatches = REGEX_IMAGE_TAG . exec ( html ) ) !== null ) {
167- tags . push ( [ ...imageMatches ] )
167+ tags . push ( [ ...imageMatches ] as RegExpMatchArray )
168168 }
169169
170170 let images : PreviewDataImage [ ] = [ ]
You can’t perform that action at this time.
0 commit comments