TIL you can't use octal escape sequences in JS strings any more, so for ANSI escape seqs you have to use e.g. '\x1b[s' instead of '\033[s'
What once surprised me is that `\0` is not an octal escape sequence although it kinda looks like one. https://mathiasbynens.be/notes/javascript-escapes#octal …
-
-
yeah, that confused me too. Also, you can't use octal literals in template strings in strict *or* sloppy mode, turns out
-
first time I’ve heard the term “sloppy mode”
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.