Skip to content

Commit

Permalink
fix: fixed bug in manpage.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mundanevision20 authored Sep 21, 2024
1 parent aaf4cdc commit 04adb1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions explainshell/manpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ def _parse_synopsis(base, synopsis):
synopsis = synopsis[len(base) + 3: -1]
if synopsis[-1] == ".":
synopsis = synopsis[:-1]

if not SPLIT_SYNOP.match(synopsis):
return []

return SPLIT_SYNOP.match(synopsis).groups()


Expand Down

0 comments on commit 04adb1d

Please sign in to comment.