Skip to content

Commit

Permalink
Fix flake8 missing blank line complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteCommander committed Apr 19, 2018
1 parent 0315eca commit 4811677
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions parsing.py
Expand Up @@ -149,10 +149,12 @@ def unescape_title(title_escaped):
def escape_special_chars_in_title(title_unescaped):
return regex.sub(r"([_*\\`\[\]])", r"\\\1", title_unescaped)


# noinspection PyMissingTypeHints
def sanitize_title(title_unescaped):
return regex.sub('(https?://|\n)', '', escape_special_chars_in_title(title_unescaped).replace('\n', u'\u23CE'))


# noinspection PyMissingTypeHints
def get_user_from_list_command(cmd): # for example, !!/addblu is a list command
cmd_merged_spaces = regex.sub("\\s+", " ", cmd)
Expand Down

0 comments on commit 4811677

Please sign in to comment.