Check type ID#

kind: filesystem_name_regex

Purpose#

Require a name to match a regular expression (anchored).

Configuration keys#

FieldRequiredDefaultMeaning
patternyes-Regular expression; matched anchored (^pattern$).
targetnofilenameWhat to test: filename, filename-ext, parent-dir, or path-segments.

Example#

collections:
  notes:
    path: notes
    checks:
      - kind: filesystem_name_regex
        pattern: '[0-9]{4}-[a-z-]+'