Skip to content

Commit 1a86fcd

Browse files
author
David Kitchen
committed
go mod tidy && go fmt
1 parent f0057e2 commit 1a86fcd

3 files changed

Lines changed: 4 additions & 12 deletions

File tree

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module github.com/microcosm-cc/bluemonday
33
go 1.16
44

55
require (
6-
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d
76
github.com/aymerick/douceur v0.2.0
87
github.com/gorilla/css v1.0.0 // indirect
98
golang.org/x/net v0.0.0-20210614182718-04defd469f4e

go.sum

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl3/e6D5CLfI0j/7hiIEtvGVFPCZ7Ei2oq8iQ=
2-
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
31
github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk=
42
github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4=
53
github.com/gorilla/css v1.0.0 h1:BQqNyPTi50JCFMTw/b67hByjMVXZRwGha6wxVGkeihY=
64
github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c=
7-
golang.org/x/net v0.0.0-20210421230115-4e50805a0758 h1:aEpZnXcAmXkd6AvLb2OPt+EN1Zu/8Ne3pCqPjja5PXY=
8-
golang.org/x/net v0.0.0-20210421230115-4e50805a0758/go.mod h1:72T/g9IO56b78aLF+1Kcs5dz7/ng1VjMUvfKvpfy+jM=
9-
golang.org/x/net v0.0.0-20210610132358-84b48f89b13b h1:k+E048sYJHyVnsr1GDrRZWQ32D2C7lWs9JRc0bel53A=
10-
golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
115
golang.org/x/net v0.0.0-20210614182718-04defd469f4e h1:XpT3nA5TvE525Ne3hInMh6+GETgn27Zfm9dxsThnX2Q=
126
golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
137
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
14-
golang.org/x/sys v0.0.0-20210420072515-93ed5bcd2bfe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
158
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
169
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
1710
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=

sanitize.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func escapeUrlComponent(w stringWriterWriter, val string) error {
130130
return err
131131
}
132132

133-
// Query represents a single part of the query string, a query param
133+
// Query represents a single part of the query string, a query param
134134
type Query struct {
135135
Key string
136136
Value string
@@ -524,11 +524,11 @@ attrsLoop:
524524
for _, ap := range apl {
525525
if ap.regexp != nil {
526526
if ap.regexp.MatchString(htmlAttr.Val) {
527-
htmlAttr.Val = escapeAttribute(htmlAttr.Val)
527+
htmlAttr.Val = escapeAttribute(htmlAttr.Val)
528528
cleanAttrs = append(cleanAttrs, htmlAttr)
529529
}
530530
} else {
531-
htmlAttr.Val = escapeAttribute(htmlAttr.Val)
531+
htmlAttr.Val = escapeAttribute(htmlAttr.Val)
532532
cleanAttrs = append(cleanAttrs, htmlAttr)
533533
}
534534
}
@@ -1058,4 +1058,4 @@ func escapeAttribute(val string) string {
10581058
val = strings.Replace(val, string([]rune{'\u00A0'}), ` `, -1)
10591059
val = strings.Replace(val, `"`, `"`, -1)
10601060
return val
1061-
}
1061+
}

0 commit comments

Comments
 (0)