Skip to content

obsidian/path-settings

This module provides classes and validators for managing include/exclude path settings.

ClassDescription
PathSettingsA class for managing include/exclude path settings.
FunctionDescription
pathsValidatorValidates include/exclude path entries, reporting the first entry that is not a parseable regular expression. An entry that starts and ends with / is a regular expression literal; every other entry is a plain path and is always valid. An invalid entry does not throw when assigned to PathSettings — the whole list falls back to its default pattern instead — so this validator is what surfaces the problem to the user.