added r to regex strings

This commit is contained in:
Wilson Freitas
2024-02-17 10:13:23 -03:00
parent 8de67f5c94
commit 340f3cfe5d
+3 -3
View File
@@ -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: