From e0251d6c31ba4e15d27a281747771b66decaf849 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Mon, 30 Jun 2008 19:21:26 -0300 Subject: Cleanup regex --- hardinfo2/arch/linux/common/resources.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hardinfo2/arch/linux') 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); } -- cgit v1.2.3