summaryrefslogtreecommitdiff
path: root/vendor/github.com/microcosm-cc/bluemonday/css
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-07-08 07:34:39 +0000
committerLibravatar GitHub <noreply@github.com>2024-07-08 07:34:39 +0000
commit5769722c583474d9ea3e346a7773261738245268 (patch)
tree91f35f10c92ac85092857e7c618a8a2377dd11fe /vendor/github.com/microcosm-cc/bluemonday/css
parent[chore]: Bump golang.org/x/crypto from 0.24.0 to 0.25.0 (#3080) (diff)
downloadgotosocial-5769722c583474d9ea3e346a7773261738245268.tar.xz
[chore]: Bump github.com/microcosm-cc/bluemonday from 1.0.26 to 1.0.27 (#3081)
Diffstat (limited to 'vendor/github.com/microcosm-cc/bluemonday/css')
-rw-r--r--vendor/github.com/microcosm-cc/bluemonday/css/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/microcosm-cc/bluemonday/css/handlers.go b/vendor/github.com/microcosm-cc/bluemonday/css/handlers.go
index f8b8b61af..41a00c8cb 100644
--- a/vendor/github.com/microcosm-cc/bluemonday/css/handlers.go
+++ b/vendor/github.com/microcosm-cc/bluemonday/css/handlers.go
@@ -291,7 +291,7 @@ var (
Font = regexp.MustCompile(`^('[a-z \-]+'|[a-z \-]+)$`)
Grayscale = regexp.MustCompile(`^grayscale\(([0-9]{1,2}|100)%\)$`)
GridTemplateAreas = regexp.MustCompile(`^['"]?[a-z ]+['"]?$`)
- HexRGB = regexp.MustCompile(`^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$`)
+ HexRGB = regexp.MustCompile(`^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$`)
HSL = regexp.MustCompile(`^hsl\([ ]*([012]?[0-9]{1,2}|3[0-5][0-9]|360),[ ]*([0-9]{0,2}|100)\%,[ ]*([0-9]{0,2}|100)\%\)$`)
HSLA = regexp.MustCompile(`^hsla\(([ ]*[012]?[0-9]{1,2}|3[0-5][0-9]|360),[ ]*([0-9]{0,2}|100)\%,[ ]*([0-9]{0,2}|100)\%,[ ]*(1|1\.0|0|(0\.[0-9]+))\)$`)
HueRotate = regexp.MustCompile(`^hue-rotate\(([12]?[0-9]{1,2}|3[0-5][0-9]|360)?\)$`)