2 ms·
I'm not arguing in favor of writing it that way, but I might argue it's not incorrect as written. location.href can never start with an underscore. A regex on
by dahart 11y ago
I'm not arguing in favor of writing it that way, but I might argue it's not incorrect as written. location.href can never start with an underscore.
A regex on location.pathname would sure be a lot clearer to read, though.