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

colors starting with 0E break output formatting #12

Open
timohausmann opened this issue Jul 17, 2022 · 0 comments · May be fixed by #13
Open

colors starting with 0E break output formatting #12

timohausmann opened this issue Jul 17, 2022 · 0 comments · May be fixed by #13

Comments

@timohausmann
Copy link

timohausmann commented Jul 17, 2022

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".

@timohausmann timohausmann linked a pull request Oct 18, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant