mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix excludes pattern matching
This commit is contained in:
parent
6e779a0520
commit
c61d56935b
3 changed files with 18 additions and 50 deletions
|
|
@ -1717,15 +1717,15 @@ GList *tty_search_for_serial_devices(void)
|
|||
}
|
||||
|
||||
// Do not add devices excluded by exclude patterns
|
||||
if (match_any_pattern(path, option.exclude_devices))
|
||||
if (match_patterns(path, option.exclude_devices))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (match_any_pattern(driver, option.exclude_drivers))
|
||||
if (match_patterns(driver, option.exclude_drivers))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (match_any_pattern(tid, option.exclude_tids))
|
||||
if (match_patterns(tid, option.exclude_tids))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue