Added a regex to close on the reset code

The Ansi reset code `0` should close the span since it's a "reset to normal color" flag.

I patched this, and added a test case for it.