diff options
Diffstat (limited to 'hardinfo2')
| -rw-r--r-- | hardinfo2/arch/linux/common/resources.h | 4 | 
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);      } | 
