mirror of
https://github.com/tw93/Mole.git
synced 2026-02-12 20:25:13 +00:00
Merge branch 'dev' of github.com:tw93/Mole into dev
This commit is contained in:
@@ -56,9 +56,9 @@ if [[ -f "$HOME/.config/mole/whitelist" ]]; then
|
|||||||
# Expand tilde to home directory
|
# Expand tilde to home directory
|
||||||
[[ "$line" == ~* ]] && line="${line/#~/$HOME}"
|
[[ "$line" == ~* ]] && line="${line/#~/$HOME}"
|
||||||
|
|
||||||
# Stricter path validation (no spaces, wildcards only at end)
|
# Path validation with support for spaces and wildcards
|
||||||
# Allow: letters, numbers, /, _, ., -, @ and * only at the end
|
# Allow: letters, numbers, /, _, ., -, @, spaces, and * anywhere in path
|
||||||
if [[ ! "$line" =~ ^[a-zA-Z0-9/_.@-]+(\*)?$ ]]; then
|
if [[ ! "$line" =~ ^[a-zA-Z0-9/_.@\ *-]+$ ]]; then
|
||||||
WHITELIST_WARNINGS+=("Invalid path format: $line")
|
WHITELIST_WARNINGS+=("Invalid path format: $line")
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ Bazel build cache|$HOME/.cache/bazel/*|compiler_cache
|
|||||||
Go build cache and module cache|$HOME/Library/Caches/go-build/*|compiler_cache
|
Go build cache and module cache|$HOME/Library/Caches/go-build/*|compiler_cache
|
||||||
Go module cache|$HOME/go/pkg/mod/cache/*|compiler_cache
|
Go module cache|$HOME/go/pkg/mod/cache/*|compiler_cache
|
||||||
Rust Cargo registry cache|$HOME/.cargo/registry/cache/*|compiler_cache
|
Rust Cargo registry cache|$HOME/.cargo/registry/cache/*|compiler_cache
|
||||||
|
Rust documentation cache|$HOME/.rustup/toolchains/*/share/doc/*|compiler_cache
|
||||||
Rustup toolchain downloads|$HOME/.rustup/downloads/*|compiler_cache
|
Rustup toolchain downloads|$HOME/.rustup/downloads/*|compiler_cache
|
||||||
ccache compiler cache|$HOME/.ccache/*|compiler_cache
|
ccache compiler cache|$HOME/.ccache/*|compiler_cache
|
||||||
sccache distributed compiler cache|$HOME/.cache/sccache/*|compiler_cache
|
sccache distributed compiler cache|$HOME/.cache/sccache/*|compiler_cache
|
||||||
|
|||||||
Reference in New Issue
Block a user