Open ScytheDraven47 opened 10 months ago
The // Pass metadata is behaving weirdly when the passed input begins with a hyphen -.
// Pass
-
Input: -4.5 Expected Result: {"pass":"-4.5"} Actual Result: {"4":0.5,"pass":true}
-4.5
{"pass":"-4.5"}
{"4":0.5,"pass":true}
Script to replicate:
// Name: Test Pass // Pass: true import "@johnlindquist/kit" console.log(flag) await arg()
The
// Pass
metadata is behaving weirdly when the passed input begins with a hyphen-
.Input:
-4.5
Expected Result:{"pass":"-4.5"}
Actual Result:{"4":0.5,"pass":true}
Script to replicate: