[gnome-control-center] info: Also trim useless info when trailing ")" is missing



commit 69c17d865273d632ba7b47d6e5d348758c31d870
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Nov 16 17:00:58 2016 +0100

    info: Also trim useless info when trailing ")" is missing
    
    As seen in attachment 339587
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774240

 panels/info/info-cleanup-test.txt |    2 ++
 panels/info/info-cleanup.c        |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/panels/info/info-cleanup-test.txt b/panels/info/info-cleanup-test.txt
index 44dde28..29f4e79 100644
--- a/panels/info/info-cleanup-test.txt
+++ b/panels/info/info-cleanup-test.txt
@@ -3,4 +3,6 @@ Intel(R) Ivybridge Mobile       Intel<sup>®</sup> Ivybridge Mobile
 Intel(R)  Ivybridge Mobile     Intel<sup>®</sup> Ivybridge Mobile
 Gallium 0.4 on AMD KAVERI      AMD<sup>®</sup> Kaveri
 AMD KAVERI (DRM 2.48.0 / 4.9.0-0.rc4.git2.2.fc26.x86_64, LLVM3)        AMD<sup>®</sup> Kaveri
+AMD KAVERI (DRM 2.48.0 / 4.9.0-0.rc4.git2.2.fc26.x86_64, LLVM3 AMD<sup>®</sup> Kaveri
 Gallium 0.4 on AMD KAVERI (DRM 2.48.0 / 4.9.0-0.rc4.git2.2.fc26.x86_64, LLVM3) AMD<sup>®</sup> Kaveri
+Gallium 0.4 on AMD KAVERI (DRM 2.48.0 / 4.9.0-0.rc4.git2.2.fc26.x86_64, LLVM3  AMD<sup>®</sup> Kaveri
diff --git a/panels/info/info-cleanup.c b/panels/info/info-cleanup.c
index 6c0ea88..20243ec 100644
--- a/panels/info/info-cleanup.c
+++ b/panels/info/info-cleanup.c
@@ -40,7 +40,7 @@ prettify_info (const char *info)
     { "Core[(]TM[)]", "Core<sup>\342\204\242</sup>"},
     { "Atom[(]TM[)]", "Atom<sup>\342\204\242</sup>"},
     { "Gallium .* on (AMD .*)", "\\1"},
-    { "(AMD .*) [(].*[)]", "\\1"},
+    { "(AMD .*) [(].*", "\\1"},
     { "(AMD [A-Z])(.*)", "\\1\\L\\2\\E"},
     { "AMD", "AMD<sup>\302\256</sup>"},
     { "Graphics Controller", "Graphics"},


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