Returns URL of the reference markup from reference url in Markdown format
(ref)
| 109 | |
| 110 | |
| 111 | def matcher_url(ref) -> str: |
| 112 | """ |
| 113 | Returns URL of the reference markup from reference url in Markdown format |
| 114 | """ |
| 115 | markup_regex = r"\[([^\[]+)]\(\s*(http[s]?://.+)\s*\)" |
| 116 | matched_markup = re.findall(markup_regex, ref) |
| 117 | if matched_markup: |
| 118 | return matched_markup[0][1] |
| 119 | else: |
| 120 | return ref |
| 121 | |
| 122 | |
| 123 | def get_aliases(database_id, cve_ref) -> List: |