ncoghlan opened this issue 12 years ago · 1 comments
The example in the readme will fail with an AttributeError in the case where neither regex matches. The check for "m is None" needs to be first, with the else clause unused.
I just fixed it in c583193 after you pointed it out on Twitter. When I wrote “it’s just an example”, I misremembered the example. Thanks again!