mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-22 12:58:33 +00:00
Slightly more comments
This commit is contained in:
parent
d6b2c512f7
commit
f465fb3ed8
@ -15,6 +15,9 @@ def match(command):
|
|||||||
|
|
||||||
|
|
||||||
def _parse_operations(help_text_lines):
|
def _parse_operations(help_text_lines):
|
||||||
|
# The regex has to be a bytes-style regex since reading from a file
|
||||||
|
# like stdin returns a bytes-style object and a string-style regex
|
||||||
|
# wouldn't work.
|
||||||
operation_regex = re.compile(b'^([a-z-]+) +', re.MULTILINE)
|
operation_regex = re.compile(b'^([a-z-]+) +', re.MULTILINE)
|
||||||
return operation_regex.findall(help_text_lines)
|
return operation_regex.findall(help_text_lines)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user