Closed Mohamed00 closed 4 years ago
I was reluctant to add this one. Do we know the circumstances under which it crashes? I think it has something to do with end of string? Otherwise it just slides or glitches. And how many people would actually know how to make it crash, rather than just making it glitch? If it can be crashed reliably with a given pattern that could be deduced, then yeah I'd add it, but I'd rather avoid false positives if possible.
Yes, it can be crashed with something like juaras aaaaaaaaaaaaaa aaaa, delete the space of course. It only works on its own, though, the patterns that make the synth glitch won't be caught here.
It seems that the pattern is juaras, juaros, juarus or juares, and then at least nine A's and then another letter, though some symbols such as _ can do it as well, so I thought it would be better to just mask out that pattern on its own.
It works if you send a bunch of i's or o's directly after it as well, and I can make the regex more compact with a character class instead of the heavier alternation. I'll merge this but then make some edits, as e juarosjuarasausausjasjajusjausjausjaujsuajsua o still works, even though the string is rather scrambled.
This pull request adds a new crash expression for juaras, as well as juares, juaros, and juarus. While these can cause the synth to make fun noises, they can also crash it if used the right way.