From 5c0e08ae9cf2e6796f8608f30ac03be235aedfe1 Mon Sep 17 00:00:00 2001 From: kaiyuran <73236245+kaiyuran@users.noreply.github.com> Date: Tue, 12 Nov 2024 20:12:47 -0500 Subject: [PATCH] fixed bug of quotations being removed --- .gitignore | 1 + app.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5890b09 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +test.py diff --git a/app.py b/app.py index 87335da..98969aa 100644 --- a/app.py +++ b/app.py @@ -176,8 +176,8 @@ def emojify(message): "summer": "🍉", } - message = message.replace('"', "") - message = message.replace("'", "") + message = message.strip('"') + message = message.strip("'") finalMessage = [] print("message is:",message) message = message.split(" ")