info: Also trim useless info when trailing ")" is missing

As seen in attachment 339587

https://bugzilla.gnome.org/show_bug.cgi?id=774240
This commit is contained in:
Bastien Nocera 2016-11-16 17:00:58 +01:00
parent 1549857fc9
commit 69c17d8652
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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"},