aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/arch/linux/common
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2008-06-30 19:21:26 -0300
committerLeandro A. F. Pereira <leandro@hardinfo.org>2008-06-30 19:21:26 -0300
commite0251d6c31ba4e15d27a281747771b66decaf849 (patch)
treef38990f4a946f93faaf2148d28e4032c94941a03 /hardinfo2/arch/linux/common
parent47c10af317faae9184d5d9e1f1f37c2913a16ef7 (diff)
Cleanup regex
Diffstat (limited to 'hardinfo2/arch/linux/common')
-rw-r--r--hardinfo2/arch/linux/common/resources.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/hardinfo2/arch/linux/common/resources.h b/hardinfo2/arch/linux/common/resources.h
index 5e767caa..be6a1e35 100644
--- a/hardinfo2/arch/linux/common/resources.h
+++ b/hardinfo2/arch/linux/common/resources.h
@@ -21,12 +21,14 @@ gchar *_resources = NULL;
#if GLIB_CHECK_VERSION(2,14,0)
static GRegex *_regex_pci = NULL,
*_regex_module = NULL;
+
static gchar *_resource_obtain_name(gchar *name)
{
gchar *temp;
if (!_regex_pci && !_regex_module) {
- _regex_pci = g_regex_new("^[0-9a-fA-F]{4}:[0-9a-fA-F]{2}:[0-9a-fA-F]{2}\\.[0-9a-fA-F]{1}$",
+ _regex_pci = g_regex_new("^[0-9a-fA-F]{4}:[0-9a-fA-F]{2}:"
+ "[0-9a-fA-F]{2}\\.[0-9a-fA-F]{1}$",
0, 0, NULL);
_regex_module = g_regex_new("^[0-9a-zA-Z\\_\\-]+$", 0, 0, NULL);
}