void256/nifty-gui — pull request #10 by mkaring (2012-01-14 12:18:39+00:00)
Title: ColorValidator - Bugfix

Fixed some bugs in the color validator that were shadowed by the unit test (that contained just the same bug)
Improved the usage of the regular expression for detecting valid and invalid color definition strings.

The problem was that the color validator did not properly detect the versions without alpha component at the valid test. Also the use of String.matches along with static pattern made this function very inefficient.