kit icon indicating copy to clipboard operation
kit copied to clipboard

Pass metadata breaks when input starts with a hyphen

Open ScytheDraven47 opened this issue 1 year ago • 0 comments

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()

ScytheDraven47 avatar Jan 26 '24 00:01 ScytheDraven47