Update footprint filter type-in to be implicit *
Footprint filter provides two Regex filtering options. One for keywords and one for footprint keywords. The footprint keywords (contained in the symbol files) need explicit '*' at the beginning and end of the filters to allow matching start/end. Type-in filters should search implicitly matching any wildcard substring. Fixes: lp:1769931 * https://bugs.launchpad.net/kicad/+bug/1769931
This commit is contained in:
parent
a997aad144
commit
b90f70e230
|
@ -128,8 +128,6 @@ bool FOOTPRINT_FILTER_IT::FootprintFilterMatch( FOOTPRINT_INFO& aItem )
|
|||
// The matching is case insensitive
|
||||
wxString name;
|
||||
|
||||
EDA_PATTERN_MATCH_WILDCARD_EXPLICIT patternFilter;
|
||||
|
||||
for( auto const& each_filter : m_filter->m_footprint_filters )
|
||||
{
|
||||
name.Empty();
|
||||
|
|
|
@ -136,11 +136,11 @@ private:
|
|||
|
||||
FOOTPRINT_LIST* m_list;
|
||||
|
||||
wxString m_lib_name;
|
||||
wxString m_filter_pattern;
|
||||
int m_pin_count;
|
||||
int m_filter_type;
|
||||
EDA_PATTERN_MATCH_WILDCARD_EXPLICIT m_filter;
|
||||
wxString m_lib_name;
|
||||
wxString m_filter_pattern;
|
||||
int m_pin_count;
|
||||
int m_filter_type;
|
||||
EDA_PATTERN_MATCH_WILDCARD m_filter;
|
||||
|
||||
std::vector<std::unique_ptr<EDA_PATTERN_MATCH>> m_footprint_filters;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue