microcosm-cc / bluemonday

bluemonday: a fast golang HTML sanitizer (inspired by the OWASP Java HTML Sanitizer) to scrub user generated content of XSS
https://github.com/microcosm-cc/bluemonday
BSD 3-Clause "New" or "Revised" License
3.12k stars 176 forks source link

css: improve RGB hex color and length matching #142

Closed hochhaus closed 2 years ago

hochhaus commented 2 years ago
buro9 commented 2 years ago

I'm happy to merge this when the regexp's are made public (I see no reason that they're not public and I default public - see the ones in /helpers.go which are default public.

buro9 commented 2 years ago

I'm going to merge and rename things 👍

hochhaus commented 2 years ago

Thanks.