more about allow -

This commit is contained in:
rustdesk 2025-02-15 19:00:43 +08:00
parent 33b47dd6e3
commit 356adbcd8c

View file

@ -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) {