matched_stripped() — tailwindcss Function Reference
Architecture documentation for the matched_stripped() function in gitignore.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 85514e47_0778_8129_291e_eb0635f493e0["matched_stripped()"] bcde51f1_24c3_24e7_4c92_5f3bdad5482e["matched()"] bcde51f1_24c3_24e7_4c92_5f3bdad5482e -->|calls| 85514e47_0778_8129_291e_eb0635f493e0 9e0901b1_589e_f34e_e871_d74e148bffa5["matched_path_or_any_parents()"] 9e0901b1_589e_f34e_e871_d74e148bffa5 -->|calls| 85514e47_0778_8129_291e_eb0635f493e0 5ef9c4eb_dd26_3310_8883_d6d0d0fc9c0e["is_empty()"] 85514e47_0778_8129_291e_eb0635f493e0 -->|calls| 5ef9c4eb_dd26_3310_8883_d6d0d0fc9c0e 845c553c_314e_824f_90c0_dfa8b375e7fe["is_only_dir()"] 85514e47_0778_8129_291e_eb0635f493e0 -->|calls| 845c553c_314e_824f_90c0_dfa8b375e7fe edfff1bb_5335_b77e_2229_67a6334f97f9["is_whitelist()"] 85514e47_0778_8129_291e_eb0635f493e0 -->|calls| edfff1bb_5335_b77e_2229_67a6334f97f9 style 85514e47_0778_8129_291e_eb0635f493e0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/gitignore.rs lines 246–269
fn matched_stripped<P: AsRef<Path>>(&self, path: P, is_dir: bool) -> Match<&Glob> {
if self.is_empty() {
return Match::None;
}
// CHANGED: Rules marked as only_on_files can not match against directories.
if self.only_on_files && is_dir {
return Match::None;
}
let path = path.as_ref();
let mut matches = self.matches.as_ref().unwrap().get();
let candidate = Candidate::new(path);
self.set.matches_candidate_into(&candidate, &mut *matches);
for &i in matches.iter().rev() {
let glob = &self.globs[i];
if !glob.is_only_dir() || is_dir {
return if glob.is_whitelist() {
Match::Whitelist(glob)
} else {
Match::Ignore(glob)
};
}
}
Match::None
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does matched_stripped() do?
matched_stripped() is a function in the tailwindcss codebase.
What does matched_stripped() call?
matched_stripped() calls 3 function(s): is_empty, is_only_dir, is_whitelist.
What calls matched_stripped()?
matched_stripped() is called by 2 function(s): matched, matched_path_or_any_parents.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free