mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 03:21:16 -03:00
create_manpage_completions.py: use correct capture group
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user