Skip to content

Commit

Permalink
pcireg: Add one more abbreviation shortening mode to pciutil
Browse files Browse the repository at this point in the history
  • Loading branch information
richardg867 committed Oct 24, 2024
1 parent 50f2993 commit d5a07eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified pcireg/PCIIDS.LHA
Binary file not shown.
6 changes: 3 additions & 3 deletions pcireg/pciutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

clean_device_abbr = [
# Generic patterns to catch extended abbreviations: "Abbreviated Terms (AT)"
('([A-Z])[^\s]+ ([A-Z])[^\s]+ (?:\(|\[|\{|/)\\2\\3(?:$|\)|\]|\})', '\\2\\3'),
('([A-Z])[^\s]+ ([A-Z])[^\s]+ ([A-Z])[^\s]+ (?:\(|\[|\{|/)\\2\\3\\4(?:$|\)|\]|\})', '\\2\\3\\4'),
('([A-Z])[^\s]+ ([A-Z])[^\s]+ ([A-Z])[^\s]+ ([A-Z])[^\s]+ (?:\(|\[|\{|/)\\2\\3\\4\\5(?:$|\)|\]|\})', '\\2\\3\\4\\5'),
('([A-Z])[^- ]+[- ]([A-Z])[^ ]+ (?:\(|\[|\{|/)\\2\\3(?:$|\)|\]|\})', '\\2\\3'),
('([A-Z])[^- ]+[- ]([A-Z])[^- ]+[- ]([A-Z])[^ ]+ (?:\(|\[|\{|/)\\2\\3\\4(?:$|\)|\]|\})', '\\2\\3\\4'),
('([A-Z])[^- ]+[- ]([A-Z])[^- ]+[- ]([A-Z])[^- ]+[- ]([A-Z])[^ ]+ (?:\(|\[|\{|/)\\2\\3\\4\\5(?:$|\)|\]|\})', '\\2\\3\\4\\5'),

# Manual patterns
('100Base-TX?', 'FE'),
Expand Down

0 comments on commit d5a07eb

Please sign in to comment.