Spyke
perchanceยทPerchance - Create a Random Text GeneratorbyBluePower

[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 ๐Ÿ™‚)

View original on sh.itjust.works
lemmy.world

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.

3

You reached the end