Skip to content

Commit 68777af

Browse files
committed
fixed
1 parent adc9258 commit 68777af

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

parse.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ func findNextEqual(str string, i int) int {
270270

271271
}
272272
return -1
273-
274273
}
275274

276275
func findBeforeEqual(str string, i int) int {
@@ -288,5 +287,4 @@ func findBeforeEqual(str string, i int) int {
288287

289288
}
290289
return -1
291-
292290
}

utils_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ func TestSpaceIndex(t *testing.T) {
1818
}
1919

2020
func TestStripBlankChar(t *testing.T) {
21-
x := "!---a\u0000\u0001\u0002\u0003\r\n b----"
21+
x := "!---a\u0000\u0001\u0002\u0003\r\n b----" + string(rune(127)) + string(rune(9))
2222

2323
result := stripBlankChar(x)
2424
if result != "!---a\r\n b----" {
2525
t.Errorf("stripBlankChar err %s", result)
2626

2727
}
28-
// t.Logf("stripBlankChar %+v", result)
28+
2929
}
3030

3131
func TestStripCommentTag(t *testing.T) {

xss_option_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,8 @@ func TestEscapeHTMLEntities1(t *testing.T) {
118118
}
119119
}
120120

121-
122121
func TestStripTagBody(t *testing.T) {
123-
r := stripTagBody([]string{},nil)
122+
r := stripTagBody([]string{}, nil)
124123
html := ""
125124

126125
result := r.Remove(html)
@@ -129,4 +128,4 @@ func TestStripTagBody(t *testing.T) {
129128
t.Errorf("TestStripTagBodyResultRemove err;")
130129

131130
}
132-
}
131+
}

0 commit comments

Comments
 (0)