mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-17 09:52:44 +08:00
create_manpage_completions.py: use correct capture group
This commit is contained in:
parent
225470493b
commit
0c9e651fdf
|
@ -286,7 +286,7 @@ class Type1ManParser(ManParser):
|
|||
options_section_regex = re.compile('\.SH "OPTIONS"(.*?)(\.SH|\Z)', re.DOTALL)
|
||||
options_section_matched = re.search(options_section_regex, manpage)
|
||||
|
||||
options_section = options_section_matched.group(0)
|
||||
options_section = options_section_matched.group(1)
|
||||
# print options_section
|
||||
options_parts_regex = re.compile("\.PP(.*?)\.RE", re.DOTALL)
|
||||
options_matched = re.search(options_parts_regex, options_section)
|
||||
|
|
Loading…
Reference in New Issue
Block a user