style: fix biome lint (template literal, import sorting)

This commit is contained in:
2026-05-31 04:48:16 +00:00
parent 806edb2750
commit f8c06ada64
2 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ export function createIncludeTag(baseDir: string) {
resolve(str: string) {
const filePath = resolve(resolvedBase, str);
// Path traversal guard: resolved path must be inside baseDir
if (!filePath.startsWith(resolvedBase + "/") && filePath !== resolvedBase) {
if (!filePath.startsWith(`${resolvedBase}/`) && filePath !== resolvedBase) {
throw new Error(
`!include path traversal blocked: "${str}" resolves outside base directory`,
);