This reverts commit 7c911eca96. I'm dumb. We need global mode because otherwise lastIndex is not updated in the regex object, which we rely upon, so this is intentional.
7c911eca96