fix lazy() being called before regex test

Causes error if user doesn't have `regenerator` installed.