You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// splitUnquoted splits s on sep, ignoring separators inside a double-quoted value.
747
+
// Attribute values in a manifest header are quoted strings, so a description such as "Apache License, Version 2.0" is a single value rather than two entries.
748
+
funcsplitUnquoted(sstring, sepbyte) []string {
749
+
varfields []string
750
+
varquotedbool
751
+
start:=0
752
+
fori:=rangelen(s) {
753
+
switchs[i] {
754
+
case'"':
755
+
quoted=!quoted
756
+
casesep:
757
+
if!quoted {
758
+
fields=append(fields, s[start:i])
759
+
start=i+1
760
+
}
761
+
}
762
+
}
763
+
returnappend(fields, s[start:])
764
+
}
765
+
745
766
// parsePluginLicenseName extracts the license name from a single Jenkins
746
767
// Plugin-License-Name[-N] manifest line, or an empty string when the line is not
0 commit comments