Fixed a bug in the color detecting regular expression