DroneRights [it/its]@lemm.ee to Programmer Humor@programming.devEnglish · edit-211 months agoWelcome to the wonderful world of code obfuscationimgur.comimagemessage-square90fedilinkarrow-up1197arrow-down19file-text
arrow-up1188arrow-down1imageWelcome to the wonderful world of code obfuscationimgur.comDroneRights [it/its]@lemm.ee to Programmer Humor@programming.devEnglish · edit-211 months agomessage-square90fedilinkfile-text
minus-squareCosmicomical@kbin.sociallinkfedilinkarrow-up24arrow-down1·11 months agoYou forgot weekend = dayOfWeek.name[0] == ‘S’;
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up19·11 months agoCan confirm this works completely as expected when the user’s system is set to lang=ES.
minus-squareSchmeckinger@feddit.delinkfedilinkarrow-up12·edit-211 months agoSimple save the users language setting in a variable, change it to english, check if the first letter is “s” and then change the language back.
minus-squareCosmicomical@kbin.sociallinkfedilinkarrow-up1·11 months agotrue but that’s a precondition to some of the other examples as well
You forgot weekend = dayOfWeek.name[0] == ‘S’;
Can confirm this works completely as expected when the user’s system is set to lang=ES.
Simple save the users language setting in a variable, change it to english, check if the first letter is “s” and then change the language back.
Genius.
true but that’s a precondition to some of the other examples as well