Skip to content

perf: use iterator for lines getter #1053

@antongolub

Description

@antongolub

The current impl may fail on max string lim

lines(): string[] {
   return this.valueOf().split(/\r?\n/)
}

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