[Bug?] Equals in dynamic odds warning, although I'm not assigning a value into anything

The last time I checked my Example Page Generator, I've found some warnings that says that I have some strange dynamic odds in the list code, even though it wasn't all about assigning variables in those things. All I was trying to do is to filter the examples based on the user using Perchance syntax (for reference):

^[perchanceExamples.getLength * "AU Perchance".includes(bym.value) * (filterOutput(perchanceExamples.selectAll.map(x => x.$text)).length > 0)]
// for filtering examples with user "Perchance", line 34
^[myExamples.getLength * "AU BluePower".includes(bym.value) * (filterOutput(myExamples.selectAll.map(x => x.$text)).length > 0)]
// for filtering examples with user "BluePower", line 36

(This isn't necessarily a bug, it's just a little bit of misunderstanding in the warning detection system and it'll be great if it's fixed 🙂)

4 points · 5 comments · view on lemmy.world

5 Comments

perchance@lemmy.world · 3 pts · 2y (1 reply)

Thanks! Should be fixed now. Let me know if you notice any other false positives like this, because the checks that I have aren't full-proof, but should become better over time as people report bugs like this.

BluePower@sh.itjust.works · 3 pts · 2y

Thanks Dev! Now there aren't any warnings in the generator anymore. 👍

BluePower@sh.itjust.works · 2 pts · 2y (2 replies)
Alllo@lemmy.world · 1 pts · 2y (1 reply)

you have gained a new ability :)