fix(cli): handle encoded lint asset paths

This commit is contained in:
Miguel Ángel
2026-05-24 16:31:45 -04:00
parent 7ad10a2dff
commit 526709cad2
6 changed files with 148 additions and 44 deletions
+1
View File
@@ -137,6 +137,7 @@ export {
rewriteAssetPath,
rewriteCssAssetUrls,
} from "./compiler/rewriteSubCompPaths";
export { decodeUrlPathVariants } from "./utils/urlPath";
// Inline scripts
export {
+11
View File
@@ -0,0 +1,11 @@
export function decodeUrlPathVariants(path: string): string[] {
const variants = [path];
try {
const decoded = decodeURIComponent(path);
if (decoded !== path) variants.unshift(decoded);
} catch {
// Malformed percent sequences may be literal filesystem names.
}
return variants;
}