Skip to content

colors starting with 0E break output formatting #12

@timohausmann

Description

@timohausmann

Hey, I noticed with output formatting active, #0E1779 becomes #000000.

Must be this line and some funny php behaviour.

var_dump("0E1779" == "0"); // bool(true)

I guess PHP interprets the color as 0e1779 (scientific notation), becoming 0.
Strict comparison === fixes this.

Edit: I'm not really sure what this line does to begin with. I only see it "trigger" when I configure a Default Value "0".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions