Skip to content
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

Add a sanitize_value implementation for the color input #19330

Merged
merged 1 commit into from
Nov 23, 2017

Commits on Nov 22, 2017

  1. Add a sanitize_value implementation for the color input

    I had to change the test a little bit to avoid some failures due to
    color and text both having a sanitizedValue which was making the test
    use the first assertion instead of the second one in some cases.
    
    The sanitize_value implementation is pretty simple, we iterate over the
    content and checks that the content is 7 characters long, that the first
    character is a `#` and then that all the following characters are
    hexadecimal. If all those requirements are met, we lowercase the
    content, otherwise we put `#000000` in it.
    Eijebong committed Nov 22, 2017
    Configuration menu
    Copy the full SHA
    05c4e08 View commit details
    Browse the repository at this point in the history