mirror of
https://github.com/wilsonfreitas/awesome-quant.git
synced 2026-08-17 13:58:08 +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):
|
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)
|
m = reu.match(url)
|
||||||
if m:
|
if m:
|
||||||
return m.group(1)
|
return m.group(1)
|
||||||
@@ -63,8 +63,8 @@ class Project(Thread):
|
|||||||
projects = []
|
projects = []
|
||||||
|
|
||||||
with open('README.md', 'r', encoding='utf8') as f:
|
with open('README.md', 'r', encoding='utf8') as f:
|
||||||
ret = re.compile('^(#+) (.*)$')
|
ret = re.compile(r'^(#+) (.*)$')
|
||||||
rex = re.compile('^\s*- \[(.*)\]\((.*)\) - (.*)$')
|
rex = re.compile(r'^\s*- \[(.*)\]\((.*)\) - (.*)$')
|
||||||
m_titles = []
|
m_titles = []
|
||||||
last_head_level = 0
|
last_head_level = 0
|
||||||
for line in f:
|
for line in f:
|
||||||
|
|||||||
Reference in New Issue
Block a user