pub fn matches_uri(pattern: &str, uri: &str) -> boolExpand description
Match a pattern against a resource URI with scheme-awareness.
Rules:
- If pattern has a scheme (
://), match the full URI as a glob. - If pattern has no scheme (bare path like
src/**), auto-prefix withfs://workspace/and only matchfs://URIs. - Scheme mismatch = no match (safety invariant).
- Invalid glob patterns never match (fail-closed).