ls-lint icon indicating copy to clipboard operation
ls-lint copied to clipboard

Match all multiple patterns

Open MiguelDomingues opened this issue 6 months ago • 0 comments

Hello!

Looking at the docs seems there is a way to specify multiple patters with |:

ls:
  .svg: kebab-case | regex:.*-(suffix1-suffix2)$

However the behavior seems to be match any of the rules. Is there any way to specify that needs to match all of them? My goal is to ensure kebab-case, but also that file names have one specific suffix. I know I can write a more complex regex to allow for this (eg regex:[a-z0-9]+(?:-[a-z0-9]+)*-(suffix1|suffix2) but was trying to keep it simpler

MiguelDomingues avatar Aug 23 '24 08:08 MiguelDomingues