Fix url validaton failures (#2783)

While analyzing failure of the report schema validation i found URL looks like that: `https://ubuntu.com/security/notices/USN-5051-4 (regression only in trusty/esm)`. This causing gitlab to mark report as invalid. Patch provided just using first word of the url word.
This commit is contained in:
Alex Samorukov
2022-08-30 14:57:40 +02:00
committed by GitHub
parent 2473b2c881
commit 2580ea1583

View File

@@ -70,7 +70,7 @@
,
{{- end -}}
{
"url": "{{ . }}"
"url": "{{ regexFind "[^ ]+" . }}"
}
{{- end }}
]