kicad-developers team mailing list archive
Mailing list archive
Re: Footprint filter match behavior
That sounds reasonable. A match pattern like "R_*" looks like a
globbing pattern, and I'd expect globbing patterns to act like that in
general. It's how most bash works, for a start, as well as things like
I imagine that most footprints with a pattern like "R_*" intended it
to be match-at-front anyway.
On Tue, Mar 14, 2017 at 11:57 PM, Chris Pavlina <pavlina.chris@xxxxxxxxx> wrote:
> Currently, the footprint filter strings in a component match a footprint
> if they occur *anywhere* in the footprint's name. This leads to some
> possibly unintentional matches - for example, "R" has a filter "R_*",
> which matches literally every footprint with R_ somewhere in its name.
> This is quite a lot of footprints that are NOT resistors.
> What if I changed this to require matching at the beginning of the
> string? A filter meant to match anywhere in the string could be written
> "*R_*" instead. This should significantly reduce the number of false
> positive matches.
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp