change regex to match new format of admin create command
This commit is contained in:
parent
5be7c655fe
commit
647483991e
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ void main(List<String> argsRaw) async {
|
|||
case EventTypes.Message:
|
||||
if (!event.senderId.startsWith("@${settings.adminName}:")) break;
|
||||
final results = RegExp(
|
||||
r"@(?<username>[a-zA-Z0-9._-]+):[^\s]+.*?password:\s+`(?<password>[^`]+)`",
|
||||
r"@(?<username>[a-zA-Z0-9._-]+):[^\s]+.*?password\s+`(?<password>[^`]+)`",
|
||||
).firstMatch(event.body);
|
||||
if (results == null) return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue