Skip to content
Commit 4e2f56fa authored by Pino Toscano's avatar Pino Toscano
Browse files

usb: improve usb.ids parsing

Tighten the regexps used, so they match the format of lines slightly
better (avoiding the need to check for matched lengths), and use
captures so we can get the parts instead of splitting the lines
manually.

Also, tighten the checks used to know which lines are being parsed,
making sure to parse only what is needed. This avoid language codes
being misparsed as subclasses.
parent eb0acf8c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment