Skip to main content

LEXICON_ETC_PATH

Constant LEXICON_ETC_PATH 

Source
pub const LEXICON_ETC_PATH: &str = r"\A[^\n]*[/\\](?:etc/(?:passwd|shadow|group|hosts|motd|issue|mysql/my\.cnf|ssh/ssh_config))(?:[/\\][\w.\-~%]{1,64})?(?:[/\\][\w.\-~%]{1,64})?(?:[/\\][\w.\-~%]{1,64})?\b";
Expand description

Lexicon-lookahead path shapes (ids 33/102/107/110/112/115): the reference pattern is \A(?=LEXICON-in-first-line)\A<path-shape>; the lexicon membership becomes a guard on the compiled path shape.