(match: RegExpMatchArray)
| 17 | /!\[([^\]]*)\]\(\s*([^) \t\r\n]+)\s*(?:(?:"([^"]*)"|'([^']*)'))?\s*\)/; |
| 18 | |
| 19 | const getThumbnailFromMatch = (match: RegExpMatchArray): Thumbnail => ({ |
| 20 | alt: match[1] ?? '', |
| 21 | src: match[2] ?? '', |
| 22 | ...(match[3] == null && match[4] == null |
| 23 | ? {} |
| 24 | : {title: match[3] ?? match[4]}), |
| 25 | }); |
| 26 | |
| 27 | const parseLeadingImage = (markdown: string): Thumbnail | undefined => { |
| 28 | const match = markdown.match(new RegExp(`^${IMAGE_MARKDOWN.source}\\s*$`)); |
no outgoing calls
no test coverage detected
searching dependent graphs…