ubuntu / ubuntu-report

Report hardware and other collected metrics like installer or upgrade information
GNU General Public License v3.0
68 stars 29 forks source link

Incorrect regex for GPU info #12

Closed didrocks closed 6 years ago

didrocks commented 6 years ago

The regex is incorrect to match the GPU info

It should be: ^. 0300: (.)(( rev .*))?$

to match the cases where there is no revision number.

Like: 01:00.0 0300: 1002:68b8

CCing https://bugs.launchpad.net/ubuntu/+source/ubuntu-report/+bug/1765614