devinsays/options-framework-theme — pull request #68 by ryanjkoehler (2012-08-29 16:57:49+00:00)
Title: simplify hex validation, color always saves with # prepended

Sorry for flooding the pull requests, I'm new to git and terminal.

I plugged in the snippet you provided from the twenty-eleven theme

- always lowercases color and saves with #
- allows for 3 char hex values also instead of only 6
- simple preg match for valid hex (without the %23 check, which I don't think twenty-eleven checks for anyways)