Skip to content

Add input validation for hex colors #3

@todo-mdx

Description

@todo-mdx

highlight.ts:73-97 - hexToAnsi256/hexToAnsiTrueColor don't validate input. Invalid hex could cause parseInt to return NaN.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions