1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-04-15 07:10:52 +01:00
thefuck/thefuck/rules/quotation_marks.py

13 lines
236 B
Python

# Fixes careless " and ' usage
#
# Example:
# > git commit -m 'My Message"
def match(command):
return '\'' in command.script and '\"' in command.script
def get_new_command(command):
return command.script.replace('\'', '\"')