Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

more about allow -

rustdesk356adbcd8c4b
diff --git a/flutter/lib/common/widgets/dialog.dart b/flutter/lib/common/widgets/dialog.dart
index 0fb8d552d..135d28c1d 100644
--- a/flutter/lib/common/widgets/dialog.dart
+++ b/flutter/lib/common/widgets/dialog.dart
@@ -71,7 +71,7 @@ void changeIdDialog() {
final rules = [
RegexValidationRule('starts with a letter', RegExp(r'^[a-zA-Z]')),
LengthRangeValidationRule(6, 16),
- RegexValidationRule('allowed characters', RegExp(r'^\w*$'))
+ RegexValidationRule('allowed characters', RegExp(r'^[\w-]*$'))
];
gFFI.dialogManager.show((setState, close, context) {