Skip to content

path-settings

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

Class Description
PathSettings A class for managing include/exclude path settings.
Function Description
pathsValidator Validates 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.