Added quotation marks rule

This commit is contained in:
Cami Diez
2015-06-02 13:18:13 +08:00
parent 13996261be
commit 79d94e2651
3 changed files with 34 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# 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 ('\'', '\"')