finding a regex that actually matches all valid forms of JS numbers (ints, floats, trailing . , leading . , exponents, etc) is proving hard
-
-
@mathias but `-0` is a number, right? Same with `-Infinity`.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias definitely JS devs expect `-42` to be a number, whether that's how the actual JS compiler sees it.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@mathias i think most devs expect syntax highlighting to treat `-42` as a number, not `-` separately from `42`.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.