[anjuta] am: Relax name rules on group to avoid error due to previous patch



commit 20f13db4a50152e563cf2e2711cf9eb36980e51b
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Thu Nov 18 22:39:15 2010 +0100

    am: Relax name rules on group to avoid error due to previous patch

 plugins/am-project/am-node.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plugins/am-project/am-node.c b/plugins/am-project/am-node.c
index a24f515..501fcae 100644
--- a/plugins/am-project/am-node.c
+++ b/plugins/am-project/am-node.c
@@ -712,15 +712,14 @@ amp_group_new (GFile *file, gboolean dist_only, GError **error)
 		gboolean failed = FALSE;
 		const gchar *ptr = name;
 		while (*ptr) {
-			if (!isalnum (*ptr) && *ptr != '.' && *ptr != '-' &&
-			    *ptr != '_')
+			if (!isalnum (*ptr) && (strchr ("#$:%+,- = ^_`~", *ptr) == NULL))
 				failed = TRUE;
 			ptr++;
 		}
 		if (failed) {
 			g_free (name);
 			error_set (error, IANJUTA_PROJECT_ERROR_VALIDATION_FAILED,
-				   _("Group name can only contain alphanumeric, '_', '-' or '.' characters"));
+				   _("Group name can only contain alphanumeric or \"#$:%+,- = ^_`~\" characters"));
 			return NULL;
 		}
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]