mirror of
https://github.com/kaiyuran/Emoji-translator-Server.git
synced 2024-11-24 10:03:41 +00:00
fixed bug of quotations being removed
This commit is contained in:
parent
dc8c4eda26
commit
5c0e08ae9c
2 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
test.py
|
4
app.py
4
app.py
|
@ -176,8 +176,8 @@ def emojify(message):
|
||||||
"summer": "🍉",
|
"summer": "🍉",
|
||||||
}
|
}
|
||||||
|
|
||||||
message = message.replace('"', "")
|
message = message.strip('"')
|
||||||
message = message.replace("'", "")
|
message = message.strip("'")
|
||||||
finalMessage = []
|
finalMessage = []
|
||||||
print("message is:",message)
|
print("message is:",message)
|
||||||
message = message.split(" ")
|
message = message.split(" ")
|
||||||
|
|
Loading…
Reference in a new issue