It's probably moot (at least I hope so) but `exec` is for when you care about *what* the mathing is. It should instead be `if (re.test(window.location.pathname))`