Rewrite some strings using raw string syntax.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
e30b3b094b
commit
d68437d5f5
4 changed files with 31 additions and 31 deletions
|
@ -32,12 +32,12 @@ class LinkShortenerHandler:
|
|||
|
||||
def handle_message(self, message: Dict[str, str], bot_handler: Any) -> None:
|
||||
REGEX_STR = (
|
||||
'('
|
||||
r'('
|
||||
r'(?:http|https):\/\/' # This allows for the HTTP or HTTPS
|
||||
# protocol.
|
||||
'[^"<>\\{\\}|\\^~[\\]` ]+' # This allows for any character except
|
||||
# for certain non-URL-safe ones.
|
||||
')'
|
||||
r'[^"<>\{\}|\^~[\]` ]+' # This allows for any character except
|
||||
# for certain non-URL-safe ones.
|
||||
r')'
|
||||
)
|
||||
|
||||
HELP_STR = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue