Bug fixes

dev
Ice3man543 2021-03-22 14:48:11 +05:30
parent 2bd2286115
commit 6794cbf4b6
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ func New(options *types.Options) (*Runner, error) {
} }
reportingOptions = &reporting.Options{} reportingOptions = &reporting.Options{}
if parseErr := yaml.NewDecoder(file).Decode(options); parseErr != nil { if parseErr := yaml.NewDecoder(file).Decode(reportingOptions); parseErr != nil {
file.Close() file.Close()
gologger.Fatal().Msgf("Could not parse reporting config file: %s\n", parseErr) gologger.Fatal().Msgf("Could not parse reporting config file: %s\n", parseErr)
} }

View File

@ -44,7 +44,7 @@ func (i *Exporter) Export(event *output.ResultEvent) error {
filenameBuilder := &strings.Builder{} filenameBuilder := &strings.Builder{}
filenameBuilder.WriteString(event.TemplateID) filenameBuilder.WriteString(event.TemplateID)
filenameBuilder.WriteString("-") filenameBuilder.WriteString("-")
filenameBuilder.WriteString(strings.ReplaceAll(event.Matched, "/", "_")) filenameBuilder.WriteString(strings.ReplaceAll(strings.ReplaceAll(event.Matched, "/", "_"), ":", "_"))
filenameBuilder.WriteString(".md") filenameBuilder.WriteString(".md")
finalFilename := filenameBuilder.String() finalFilename := filenameBuilder.String()