You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering why my iwq_extended queue would always be missed by adds, with them instead ending up in iwq_extende instead. Yet targeting iwq_extended_would put them there... Turns out rtrim is either completely broken or working exactly as intended but a very wrong tool for the job:
Given that "add to queue" already adds the extension, I have no clue what the .rtrim(".md") + ".md" was supposed to achieve. (rtrim is also used at least to generate status bar text, so that's not the only problem.)
The text was updated successfully, but these errors were encountered:
would do a much better job for the intended purpose here. (No clue if that already has a common name, this one's made up.) It's still not fully correct, since .rcut(".") would remove anything after a dot (instead maybe checking the length of the extension is its offset from the end or something like that would be more precise), but way better than rtrim, which removes all characters repeatedly. (Which seems to be a PHP-ism and working as intended, so the name rtrim SHOULD NOT be used for a different purpose, especially since you're adding it as a public function on String.)
I was wondering why my
iwq_extended
queue would always be missed by adds, with them instead ending up iniwq_extende
instead. Yet targetingiwq_extended_
would put them there... Turns outrtrim
is either completely broken or working exactly as intended but a very wrong tool for the job:Given that "add to queue" already adds the extension, I have no clue what the
.rtrim(".md") + ".md"
was supposed to achieve. (rtrim
is also used at least to generate status bar text, so that's not the only problem.)The text was updated successfully, but these errors were encountered: