The unholy trinity of #JavaScript
@mjgardner smart quotes == pain
@malwareminigun If you are trying to copy and execute code from a shitposting graphic then you have problems I can’t fix
@mjgardner Who said anything about copy paste?
@malwareminigun Not me—I only said “copy.” That includes eyeball-and-type
@malwareminigun @mjgardner PowerShell "solved" this problem by explicitly supporting smart quotes…
@jernej__s @mjgardner Unfortunately even if PowerShell supports them, my eyes bleed upon viewing them 😅😵‍💫
@malwareminigun @mjgardner Maybe I should've said „solved“ :)

@jernej__s @malwareminigun / \p{Quotation_Mark} solved \p{Quotation_Mark} /x #Perl #regex

(Note that doesn’t work with software using the #PCRE Perl “Compatible” #RegularExpression library because its #Unicode support is worse: https://www.pcre.org/current/doc/html/pcre2unicode.html#:~:text=Only%20the%20short%20names%20for%20properties%20are%20supported)

pcre2unicode specification

@mjgardner @jernej__s Unfortunately my 👀 don't implement full perl regexes either 😅
@malwareminigun @jernej__s #Perl has readability affordances for #regexes that nothing else can touch: https://perldoc.perl.org/perlre#%2Fx-and-%2Fxx
perlre - Perl regular expressions - Perldoc Browser