Skip to content

String comparison issue #5

@mullim

Description

@mullim

Depending on the EOL sequence the string comparison for isEdited doesn't work properly. I was forced to use

currentContent.replace(/\r\n/gm, '\n') !== originalContent.replace(/\r\n/gm, '\n')

for the comparison logic

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