use new regex

This commit is contained in:
Henry Hiles 2025-09-14 18:13:38 -04:00
commit 0bc13515e5
No known key found for this signature in database

View file

@ -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;