vi_actions.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:NeoVintageous 作者: NeoVintageous 项目源码 文件源码
def _url(regex, text):
        match = re.match(regex, text)
        if match:
            url = match.group('url')

            # Remove end of line full stop character.
            url = url.rstrip('.')

            # Remove closing tag markdown link e.g. [title](url)
            url = url.rstrip(')')

            # Remove closing tag markdown image e.g. ![alt](url)]
            if url[-2:] == ')]':
                url = url[:-2]

            return url

        return None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号