mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 04:38:33 +00:00
Merge remote-tracking branch 'origin/main' into fix/audio-volume-automation
# Conflicts: # packages/engine/src/services/audioMixer.test.ts
This commit is contained in:
@@ -137,6 +137,7 @@ export {
|
||||
rewriteAssetPath,
|
||||
rewriteCssAssetUrls,
|
||||
} from "./compiler/rewriteSubCompPaths";
|
||||
export { decodeUrlPathVariants } from "./utils/urlPath";
|
||||
|
||||
// Inline scripts
|
||||
export {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user