From 06317d94303f34c8ace1f4fe307f8c5c507f5eae Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Fri, 3 Apr 2020 16:41:11 +0200 Subject: [PATCH] Support room alias supplied via channel arg --- wmn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wmn.py b/wmn.py index 6cc3c94..396c01c 100644 --- a/wmn.py +++ b/wmn.py @@ -13,8 +13,8 @@ from matrix_client.errors import MatrixRequestError application = Flask(__name__) # Not going to care for specifics like the underscore. -# Generally match !anything:example.com with unicode support. -room_pattern = re.compile(r'^!\w+:[\w\-.]+$') +# Generally match room alias or id [!#]anything:example.com with unicode support. +room_pattern = re.compile(r'^[!#]\w+:[\w\-.]+$') """ config.yml Example: