From 42daa477b3404d5e32c3790d673cbd525e4342e0 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 10 Feb 2025 20:54:45 +0800 Subject: [PATCH] template_funcs: base_name should use path, not filepath --- template_funcs.go | 4 ++-- diff --git a/template_funcs.go b/template_funcs.go index 1c6865072df8488e821297a7c3a56fb5d4c11407..08932baeff3163785681dd717e617d8432b2c920 100644 --- a/template_funcs.go +++ b/template_funcs.go @@ -1,7 +1,7 @@ package main import ( - "path/filepath" + "path" "strings" ) @@ -11,5 +11,5 @@ return before } func base_name (s string) string { - return filepath.Base(s) + return path.Base(s) } -- 2.48.1