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

  • perchance@lemmy.worldM
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 months ago

    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.