Skip to content
代码片段 群组 项目
未验证 提交 0fcba15d 编辑于 作者: pukkandan's avatar pukkandan
浏览文件

[docs] Fix bug in regex escape in python 3.6

Bug in ec2e44fc
Closes #2060
上级 adbc4ec4
No related branches found
No related tags found
无相关合并请求
......@@ -53,7 +53,8 @@ def filter_excluded_sections(readme):
def move_sections(readme):
MOVE_TAG_TEMPLATE = '<!-- MANPAGE: MOVE "%s" SECTION HERE -->'
sections = re.findall(rf'(?m)^{re.escape(MOVE_TAG_TEMPLATE) % "(.+)"}$', readme)
sections = re.findall(r'(?m)^%s$' % (
re.escape(MOVE_TAG_TEMPLATE).replace(r'\%', '%') % '(.+)'), readme)
for section_name in sections:
move_tag = MOVE_TAG_TEMPLATE % section_name
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册