grim/gplate

Parents 441ed95410c3
Children f8757d67d034
the include function and it's unit test works, but I broke one of the variable tests in the mean time... grr
--- a/gplate/gplate-template.c Wed Feb 20 00:46:52 2008 -0600
+++ b/gplate/gplate-template.c Wed Feb 20 00:48:17 2008 -0600
@@ -480,8 +480,9 @@
gchar *name = NULL, *ret = NULL;
gboolean deffunc = FALSE;
- regex = g_regex_new("(.*?)(\\s(.*?))?",
+ regex = g_regex_new("\\s*([a-zA-Z0-9\\._]+)(\\s*(.*))?",
G_REGEX_OPTIMIZE | G_REGEX_MULTILINE, 0, NULL);
+
if(!regex)
return g_strdup("");