johnlindquist / kit

Script Kit. Automate Anything.
https://scriptkit.com
MIT License
3.91k stars 138 forks source link

Pass metadata breaks when input starts with a hyphen #1428

Open ScytheDraven47 opened 10 months ago

ScytheDraven47 commented 10 months ago

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:

// Name: Test Pass
// Pass: true

import "@johnlindquist/kit"

console.log(flag)

await arg()