mirror of
https://github.com/nvbn/thefuck.git
synced 2025-03-20 01:28:56 +00:00
16 lines
311 B
Python
16 lines
311 B
Python
# -*- encoding: utf-8 -*-
|
||
|
||
import re
|
||
from thefuck.specific.sudo import sudo_support
|
||
|
||
|
||
@sudo_support
|
||
def match(command):
|
||
return ('command not found' in command.output.lower()
|
||
and u' ' in command.script)
|
||
|
||
|
||
@sudo_support
|
||
def get_new_command(command):
|
||
return re.sub(u' ', ' ', command.script)
|