Skip to content

bug: metis crashes when outputting specific code snippet #143

@sttlr

Description

@sttlr

I run metis -v --log-level=DEBUG --non-interactive --command 'review_code' --output-file v3.json --output-file v3.sarif --output-file v3.html

It runs successfully and starts outputing results, until It crashes with: Error: closing tag '[/:*?"<>|]' at position 36 doesn't match any open tag

The exact code_snippet it errors on is:

if (/[/:*?"<>|]/.test(file.originalname)) {
	return cb(new Error('Filename contains forbidden symbols'));
}

Metis exists without saving results to any output file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions