Allow wildcard matching for Netclass naming

Fixes https://gitlab.com/kicad/code/kicad/issues/21455
This commit is contained in:
Seth Hillbrand
2025-08-16 13:30:20 -07:00
parent 2ff3f1fac1
commit fcd2da354d
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -280,7 +280,7 @@ bool NETCLASS::ContainsNetclassWithName( const wxString& netclass ) const
return std::any_of( m_constituents.begin(), m_constituents.end(),
[&netclass]( const NETCLASS* nc )
{
return nc && nc->GetName() == netclass;
return nc && nc->GetName().Matches( netclass );
} );
}