|
if strings.TrimSpace(line) == "" { |
We have manifests which contain something like this. The line is leading with a blank, so it is not an empty line which should trigger the section change. I guess removing the Trim would fix this problem ($ denotes line end):
Key-keykeykey: initialconfig:com/seeburger/aqmtestclient/aqmtestclient$
,$
line1,$
line2,$
$ # aka not empty line
line3,$
That value (especially line break semantics) is not so important for the analysis, but the warnings are annoying.
syft/syft/pkg/cataloger/java/parse_java_manifest.go
Line 35 in 8f57d22
We have manifests which contain something like this. The line is leading with a blank, so it is not an empty line which should trigger the section change. I guess removing the Trim would fix this problem ($ denotes line end):
That value (especially line break semantics) is not so important for the analysis, but the warnings are annoying.