use new regex
This commit is contained in:
parent
27a4694deb
commit
0bc13515e5
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ void main(List<String> argsRaw) async {
|
||||||
case EventTypes.Message:
|
case EventTypes.Message:
|
||||||
if (!event.senderId.startsWith("@${settings.adminName}:")) break;
|
if (!event.senderId.startsWith("@${settings.adminName}:")) break;
|
||||||
final results = RegExp(
|
final results = RegExp(
|
||||||
r"@(?<username>[a-zA-Z0-9._-]+):[^\s]+.*?password:\s+(?<password>\S+)",
|
r"@(?<username>[a-zA-Z0-9._-]+):[^\s]+.*?password:\s+`(?<password>[^`]+)`",
|
||||||
).firstMatch(event.body);
|
).firstMatch(event.body);
|
||||||
if (results == null) return;
|
if (results == null) return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue