Add https security to cloud-functions-v1 module (#2118)
* Add https security level to cf v1 module * Update tfdoc.py raw strings for slug var to avoid [SyntaxWarning: invalid escape sequence]
This commit is contained in:
committed by
GitHub
parent
dbabfb9ae0
commit
ae6ee03de2
@@ -366,8 +366,8 @@ def create_toc(readme):
|
||||
for h in headings[1:]:
|
||||
title = h.children[0].children
|
||||
slug = title.lower().strip()
|
||||
slug = re.sub('[^\w\s-]', '', slug)
|
||||
slug = re.sub('[-\s]+', '-', slug)
|
||||
slug = re.sub(r'[^\w\s-]', '', slug)
|
||||
slug = re.sub(r'[-\s]+', '-', slug)
|
||||
link = f'- [{title}](#{slug})'
|
||||
indent = ' ' * (h.level - 2)
|
||||
lines.append(f'{indent}{link}')
|
||||
|
||||
Reference in New Issue
Block a user