-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLOSED] Fixes to hover preview color RegExp #3325
Comments
Initial review complete. It would be nice to split the regex into multiple lines and move into a core file so it can be shared with InlineColorEditor. |
|
I do have color regex in my branch rlim/improved-color-picker which construct a named color array from tinycolor library.
|
The |
Whoops, accidentally closed. Sorry about that! |
|
The color regular expression was moved to the StringUtils as an array, but without the double escapes, which caused the JSHint error. |
I tried to break the color regex into an array of regexes, but I couldn't quite get it working, so I punted for now. I implemented a small performance improvement: don't look for a color if we already have a gradient. I fixed a couple more problems with color regex:
Copied changes to InlineColorEditor color regex (everything except named colors). Ready for final review. |
Thanks for trying the regexp split. Too bad it didn't work out. Everything else looks good. |
Monday Apr 22, 2013 at 23:09 GMT
Originally opened as adobe/brackets#3540
The RegExp is difficult to diff, so here are my changes. I made 3 changes:
redmunds included the following code: https://github.com/adobe/brackets/pull/3540/commits
The text was updated successfully, but these errors were encountered: