mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 10:11:14 +00:00
add rule upper_to_lowercase
This commit is contained in:
parent
d8ddf5a2be
commit
9680c84848
8
thefuck/rules/upper_to_lowercase.py
Normal file
8
thefuck/rules/upper_to_lowercase.py
Normal file
@ -0,0 +1,8 @@
|
||||
def match(command):
|
||||
return command.script.isupper()
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
return command.script.lower()
|
||||
|
||||
priority = 0
|
Loading…
x
Reference in New Issue
Block a user