Skip to content

Commit

Permalink
Fix inline
Browse files Browse the repository at this point in the history
  • Loading branch information
GauthamramRavichandran committed Dec 21, 2021
1 parent 80a6dcf commit a0ea603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ async def handler(event):
if "\n" in event.text:
input_urls.extend(event.text.split("\n"))
# if no new line found, (i.e) just one link
if event.text and not input_urls:
input_urls = event.text
if len(event.text) and not input_urls:
input_urls = [event.text]

if input_urls:
result = "\n".join(clear_url(link) for link in input_urls)
Expand Down

0 comments on commit a0ea603

Please sign in to comment.