From 311889278d809bc7fd1d623d9f00f3683879ea84 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Fri, 27 Aug 2010 18:57:26 +0200 Subject: [PATCH] Allow numbers in ident --- src/org/yaaic/activity/AddServerActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/yaaic/activity/AddServerActivity.java b/src/org/yaaic/activity/AddServerActivity.java index a79b8c7..4eed17e 100644 --- a/src/org/yaaic/activity/AddServerActivity.java +++ b/src/org/yaaic/activity/AddServerActivity.java @@ -390,8 +390,8 @@ public class AddServerActivity extends Activity implements OnClickListener throw new ValidationException("Invalid nickname"); } - // We currently only allow chars as ident - Pattern identPattern = Pattern.compile("^[a-zA-Z]+$"); + // We currently only allow chars and numbers as ident + Pattern identPattern = Pattern.compile("^[a-zA-Z0-9]+$"); if (!identPattern.matcher(ident).matches()) { throw new ValidationException("Invalid ident"); }