Closed MicahZoltu closed 4 years ago
You don't need to have at least two items, but you do need to have a comma. This is by design. I don't love it myself, but it's by design. Also, this is not specific to the JS core, but all cores. You can see the tests here.
Feel free to open up an issue here, arguing that this scenario should be supported, because it probably should be, IMO.
Hmm, I'm not sure how to read those tests:
; single choice
[{single}.b]
choice=single
This suggests to me that single choice is supported, but I may be reading it wrong.
It does seem that way. Unfortunately, the tests repo doesn’t have CI set up yet, so there’s no way to submit a breaking test PR. Even if it did, it would probably just be testing one of the cores like the C core.
Honestly, we need a way to run tests across all cores.
Actual Behavior:
Expected Behavior:
Workaround
Change
[*.{ts}]
to[*.ts]
or to[*.{ts,js}]
. The problem here appears to be that a set with a single item in it doesn't properly match items. You need to have at least two items in the set for it to match.