@mathias @littledan @bterlson How would you specify regexp flags?
re`^abc$`.flags('gu') // subclass of RegExp
re('gu')`^abc$`
re`^abc$/gu`
-
-
Provided the string starts with '/' and lastIndexOf ('\/') + 1 is before lastIndexOf('/'), right?
-
I’d just: if it starts with a slash, always use the last slash. There’d simply be no escaping of slashes.
- 4 more replies
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.