Skip to main content

include_pattern_compiles

Function include_pattern_compiles 

Source
pub fn include_pattern_compiles(pattern: &str) -> bool
Expand description

Whether an include pattern compiles as a walker override.

Answers for the pattern as given, which is only the form the walker uses once normalize_pattern_for_base has run: stripping a base prefix removes whatever the base’s own name held, and an absolute pattern under a directory called notes [2019-2021] carries a character class over a descending range until the prefix comes off. Ask this about the pattern the walker is about to add, never about the one a config file spelled.