diff --git a/src/cli/javascriptRecoveryCommands.ts b/src/cli/javascriptRecoveryCommands.ts index 98f7548612..b7263519b1 100644 --- a/src/cli/javascriptRecoveryCommands.ts +++ b/src/cli/javascriptRecoveryCommands.ts @@ -29,10 +29,16 @@ export const registerJavaScriptRecoveryCommands = ( additionalPath: javascriptRecoveryInputSchema.shape.additional_paths, extractionMode: javascriptRecoveryInputSchema.shape.extraction_mode .removeDefault() - .optional(), + .optional() + .describe( + javascriptRecoveryInputSchema.shape.extraction_mode.description!, + ), rewriteLevel: javascriptRecoveryInputSchema.shape.rewrite_level .removeDefault() - .optional(), + .optional() + .describe( + javascriptRecoveryInputSchema.shape.rewrite_level.description!, + ), }), run: ({ args, options }) => withCommandCancellation((signal) => diff --git a/src/domain/adb/adbDeviceAnalysis.ts b/src/domain/adb/adbDeviceAnalysis.ts index be1baa50ff..5a90bd099a 100644 --- a/src/domain/adb/adbDeviceAnalysis.ts +++ b/src/domain/adb/adbDeviceAnalysis.ts @@ -62,7 +62,7 @@ const activityExtraNonEmptyValueSchema = activityExtraStringValueSchema.min(1); // Android's `am start --ef` parses this text with Float.valueOf. Keep the // caller's spelling intact while admitting Java FloatValue forms. const javaFloatValuePattern = - /^[\x01-\x20]*[+-]?(?:NaN|Infinity|(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[fFdD]?|0[xX](?:[\da-fA-F]+(?:\.[\da-fA-F]*)?|\.[\da-fA-F]+)[pP][+-]?\d+[fFdD]?))[\x01-\x20]*$/u; + /^[\x01-\x20]*[+\-]?(?:NaN|Infinity|(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+\-]?\d+)?[fFdD]?|0[xX](?:[\da-fA-F]+(?:\.[\da-fA-F]*)?|\.[\da-fA-F]+)[pP][+\-]?\d+[fFdD]?))[\x01-\x20]*$/u; const activityExtraSchema = z.discriminatedUnion("type", [ z.strictObject({ key: activityExtraKeySchema,