1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-11-17 15:26:19 +00:00
Files
thefuck/thefuck/rules/quotation_marks.py
2015-06-02 13:18:13 +08:00

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 ('\'', '\"')