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 234c90f commit ac02a7cCopy full SHA for ac02a7c
useragent/from_test.go
@@ -98,6 +98,25 @@ func Test_fromString(t *testing.T) {
98
Comment: "a comment",
99
},
100
101
+ {
102
+ "comment malformed closing",
103
+ "my-product/v1.2.3 (a comment",
104
+ config.UserAgentProduct{
105
+ Name: "my-product",
106
+ Version: "v1.2.3",
107
+ Comment: "a comment",
108
+ },
109
110
111
+ "comment missing parenthesis",
112
+ "my-product/v1.2.3 a comment",
113
+ // This is a known edge case, but the processed output will render identical
114
+ // to the original input despite the version and comment merging.
115
116
117
+ Version: "v1.2.3 a comment",
118
119
120
{
121
"all the slash",
122
"foo/bar/baz/qux",
0 commit comments