From 9680c8484823067e6379faf5209cc03f49fd29ac Mon Sep 17 00:00:00 2001 From: Nikos Kakonas Date: Sat, 7 May 2022 22:51:47 +0000 Subject: [PATCH] add rule upper_to_lowercase --- thefuck/rules/upper_to_lowercase.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 thefuck/rules/upper_to_lowercase.py diff --git a/thefuck/rules/upper_to_lowercase.py b/thefuck/rules/upper_to_lowercase.py new file mode 100644 index 00000000..9029e776 --- /dev/null +++ b/thefuck/rules/upper_to_lowercase.py @@ -0,0 +1,8 @@ +def match(command): + return command.script.isupper() + + +def get_new_command(command): + return command.script.lower() + +priority = 0