diff --git a/README.md b/README.md index c8015bb..de9b693 100644 --- a/README.md +++ b/README.md @@ -54,4 +54,17 @@ Arguments: ## Ignored Files -![](https://i.imgur.com/VV7DzjT.jpg) \ No newline at end of file +```nim +# Check if the path component is valid +proc valid_component(c: string): bool = + let not_valid = c.starts_with(".") or + c == "node_modules" or + c == "package-lock.json" or + c == "venv" or + c == "build" or + c.contains("bundle.") or + c.contains(".min.") or + c.ends_with(".zip") or + c.ends_with(".tar.gz") + return not not_valid +``` \ No newline at end of file