mirror of
https://github.com/nvbn/thefuck.git
synced 2025-11-17 15:26:19 +00:00
15 lines
278 B
Python
15 lines
278 B
Python
# Fixes careless " and ' usage
|
|
#
|
|
# Example:
|
|
# > git commit -m 'My Message"
|
|
#
|
|
#
|
|
#
|
|
|
|
def match(command, settings):
|
|
return ('\'' in command.script
|
|
and '\"' in command.script)
|
|
|
|
def get_new_command(command, settings):
|
|
return command.script.replace ('\'', '\"')
|