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

Allow greater precision in values of shorthand css elements #150

Closed

Conversation

danfstucky
Copy link
Contributor

@danfstucky danfstucky commented Apr 18, 2018

The current regular expression for determining valid shorthand css is very restrictive and only allows 2 digits on the integer portion as well as the 2 digits in the fractional portion of a css value.
This PR increases the range of valid css values.
For example, margin-left: 0.334px was previously sanitized by the html scrubber, but will now be preserved.

I increased the number of allowed digits in the css value, but I'm honestly not convinced there should be a limit at all. That can be a point of discussion.

Issue: #149

@flavorjones
Copy link
Owner

Thank you for this PR! I've merged it manually, and it will be in v2.3.0 which should drop in the next few days.

@flavorjones flavorjones added this to the v2.3.0 milestone Oct 28, 2018
@flavorjones
Copy link
Owner

v2.3.0 has been released.

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 this pull request may close these issues.

None yet

2 participants