Fixes blank Incident.File.
The analyzer creates URIs with custom schemes which is not compatible with the Go uri package which only supports (file,http,https). Using the url package to parse instead is safe because the uri package uses the url internally anyway. Fall back on raw URI string on parsing error.
Fixes blank Incident.File. The analyzer creates URIs with custom schemes which is not compatible with the Go uri package which only supports (file,http,https). Using the url package to parse instead is safe because the
uri
package uses theurl
internally anyway. Fall back on raw URI string on parsing error.