We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be77cb8 commit b185941Copy full SHA for b185941
modules/typesniffer/typesniffer_test.go
@@ -68,6 +68,9 @@ func TestIsSvgImage(t *testing.T) {
68
<!-- <svg></svg> inside comment -->
69
<foo></foo>`)).IsSvgImage())
70
71
+ assert.False(t, DetectContentType([]byte(`<svg></svg><span></span>`)).IsSvgImage())
72
+ assert.False(t, DetectContentType([]byte(`<svg></svg>text`)).IsSvgImage())
73
+
74
assert.False(t, DetectContentType([]byte(`
75
<!-- comment1 -->
76
<div>
0 commit comments