Skip to content

Commit

Permalink
[v1.0.6] Fix parsing bugs and improve the parsing regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mingrammer committed Sep 28, 2017
1 parent 147a3ff commit d685c13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion awesome/__init__.py
@@ -1,6 +1,6 @@
"""
awesome - a TUI, for finding awesome list
"""
__version__ = '1.0.5'
__version__ = '1.0.6'
__author__ = 'mingrammer'
__license__ = 'MIT'
2 changes: 1 addition & 1 deletion awesome/parsers/__init__.py
Expand Up @@ -30,7 +30,7 @@ def __init__(self, force_request=False):
force_request: If true, the parser does not use cached, but always request the README from remote repository
"""
self._markdown_header_regex = re.compile('#+\s+(.*)')
self._markdown_link_line_regex = re.compile('\s?\[([^\[\]<>]+)\]\s?\(([^\(\)]+)\)(?: [-—] (.*))?')
self._markdown_link_line_regex = re.compile('\s?\[([^<>]+|(?:\[\w+\]))\]\s?\(([^\(\)]+)\)\s?(?::\w+:)?\s?(?:[-—]\s?(.*))?')
self.force_request = force_request

def is_cached(self):
Expand Down

0 comments on commit d685c13

Please sign in to comment.