Skip to content

Revise Regex usage in TrimStackTrace #4266

Open
@Youssef1313

Description

string[] stackFrames = Regex.Split(stackTrace, Environment.NewLine);

It doesn't make much sense to me to use Regex here.

Not so much allocations but would be good to reduce:

Image

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