fix: video gen

This commit is contained in:
jialin
2026-03-17 16:35:55 +08:00
committed by jialin
parent 0ca055b8e8
commit f6d5733183
6 changed files with 43 additions and 16 deletions
+1 -1
View File
@@ -344,7 +344,7 @@ export const parseParamsString = (paramsString: string): string[] => {
} else if (token.startsWith('-')) {
// Check if next token is a value (does not start with '-')
const nextToken = tokens[i + 1];
if (nextToken && !nextToken.startsWith('-')) {
if (nextToken && !nextToken.startsWith('-') && !nextToken.includes('=')) {
// If value is quoted, keep space format
if (nextToken.startsWith('"') || nextToken.startsWith("'")) {
result.push(`${token} ${nextToken}`);