fix(contracts): retain option descriptions and portable float patterns
This commit is contained in:
1 parent
4f6166e04d
commit
0de322eb91
2 files changed
+9
-3
No files matched your search
@@ -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) =>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user