Add separate normalization for registry paths

This commit is contained in:
mtkennerly 2024-04-21 21:18:51 -04:00
parent a7cc7d5fd3
commit e7a8647c17
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
4 changed files with 65 additions and 4 deletions

View file

@ -50,7 +50,7 @@ pub fn normalize(path: &str) -> String {
path
}
pub fn too_broad(path: &str) -> bool {
fn too_broad(path: &str) -> bool {
use placeholder::{BASE, HOME, ROOT, STORE_USER_ID, WIN_APP_DATA, WIN_DIR, WIN_DOCUMENTS, XDG_CONFIG, XDG_DATA};
for item in placeholder::ALL {