pub fn matches_include_pattern(path: &str, pattern: &str) -> boolExpand description
Check if a path matches an include pattern
Include patterns support:
- Glob patterns:
*.rs,src/**/*.ts,**/*.test.js - Substring matches:
src,lib - Suffix matches:
.rs,.ts
§Arguments
path- File path to checkpattern- Include pattern
§Returns
Returns true if the path should be included.
§Examples
use infiniloom_engine::filtering::matches_include_pattern;
assert!(matches_include_pattern("src/main.rs", "*.rs"));
assert!(matches_include_pattern("src/lib.rs", "src"));
assert!(matches_include_pattern("foo.test.ts", "*.test.ts"));