pub fn is_valid_file_reference(path: &str) -> boolExpand description
Check if a path string is a valid file reference to validate.
This function filters out URLs, absolute paths, and other patterns that should not be validated as local file references.
§Valid References
- Relative paths:
./file.md,../docs/guide.md - Dot-prefixed paths:
.agpm/snippets/file.md - Simple paths:
docs/guide.md
§Invalid References (Filtered Out)
- URLs:
http://example.com,https://github.com/... - Absolute paths:
/usr/local/file.md - Paths with URL schemes:
file://...,ftp://... - Empty or whitespace-only strings
§Arguments
path- The path string to validate
§Returns
true if the path should be validated, false otherwise