Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
fix(studio): avoid regex in media asset path cleanup
ukimsanove0090efbf694
diff --git a/packages/studio/src/components/editor/propertyPanelColorGradingSection.tsx b/packages/studio/src/components/editor/propertyPanelColorGradingSection.tsxindex 84da1db22a..2f636086eb 100644--- a/packages/studio/src/components/editor/propertyPanelColorGradingSection.tsx+++ b/packages/studio/src/components/editor/propertyPanelColorGradingSection.tsx@@ -56,7 +56,11 @@ interface MediaMetadataResponse {}function stripQueryAndHash(value: string): string {- return value.replace(/[?#].*$/, "");+ const queryIndex = value.indexOf("?");+ const hashIndex = value.indexOf("#");+ if (queryIndex < 0) return hashIndex < 0 ? value : value.slice(0, hashIndex);+ if (hashIndex < 0) return value.slice(0, queryIndex);+ return value.slice(0, Math.min(queryIndex, hashIndex));}function stripPreviewAssetPath(src: string, projectId: string): string | null {