mirror of
https://github.com/wilsonfreitas/awesome-quant.git
synced 2026-07-27 20:07:50 +00:00
added r to regex strings
This commit is contained in:
@@ -12,7 +12,7 @@ g = Github(os.environ['GITHUB_ACCESS_TOKEN'])
|
||||
|
||||
|
||||
def extract_repo(url):
|
||||
reu = re.compile('^https://github.com/([\w-]+/[-\w\.]+)$')
|
||||
reu = re.compile(r'^https://github.com/([\w-]+/[-\w\.]+)$')
|
||||
m = reu.match(url)
|
||||
if m:
|
||||
return m.group(1)
|
||||
@@ -63,8 +63,8 @@ class Project(Thread):
|
||||
projects = []
|
||||
|
||||
with open('README.md', 'r', encoding='utf8') as f:
|
||||
ret = re.compile('^(#+) (.*)$')
|
||||
rex = re.compile('^\s*- \[(.*)\]\((.*)\) - (.*)$')
|
||||
ret = re.compile(r'^(#+) (.*)$')
|
||||
rex = re.compile(r'^\s*- \[(.*)\]\((.*)\) - (.*)$')
|
||||
m_titles = []
|
||||
last_head_level = 0
|
||||
for line in f:
|
||||
|
||||
Reference in New Issue
Block a user