This reverts commit 7c911eca96a6034bc96276e0a491774df52bc2cd. 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.
This reverts commit 7c911eca96a6034bc96276e0a491774df52bc2cd. 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.