Support room alias supplied via channel arg
This commit is contained in:
parent
9b41ab82a0
commit
06317d9430
4
wmn.py
4
wmn.py
|
@ -13,8 +13,8 @@ from matrix_client.errors import MatrixRequestError
|
||||||
application = Flask(__name__)
|
application = Flask(__name__)
|
||||||
|
|
||||||
# Not going to care for specifics like the underscore.
|
# Not going to care for specifics like the underscore.
|
||||||
# Generally match !anything:example.com with unicode support.
|
# Generally match room alias or id [!#]anything:example.com with unicode support.
|
||||||
room_pattern = re.compile(r'^!\w+:[\w\-.]+$')
|
room_pattern = re.compile(r'^[!#]\w+:[\w\-.]+$')
|
||||||
|
|
||||||
"""
|
"""
|
||||||
config.yml Example:
|
config.yml Example:
|
||||||
|
|
Loading…
Reference in a new issue