I know.

You're right; I forgot about that.  
That could be fixed by replacing line 106 with this same regex.