feat: basic path parsing done + testing

This commit is contained in:
2025-02-22 22:54:11 +01:00
parent 667a0aa4a1
commit 43ecf0b1be
6 changed files with 68 additions and 14 deletions

View File

@@ -2,7 +2,7 @@ use regex::Regex;
pub mod expressions;
pub fn apply_filename_template(template: &str, filename: &str) -> String {
pub fn apply_name_template(template: &str, filename: &str) -> String {
match template {
"__name__" => filename.to_string(),
"__upperCase_name__" => filename.to_uppercase().to_string(),