Skip to content

TrimSuffix usage causes issues when run from Windows #2

@JamesSkemp

Description

@JamesSkemp

In main.go the usages of strings.TrimSuffix(thing, "\n") cause an issue when the application is run on Windows.

This strips the \n but leaves the \r.

Changing these to strings.TrimRight(thing, "\r\n"), and checking for if thing != "\n" && thing != "\r\n" { } in the update functionality appears to fix the issue on Windows, and it still runs as expected on macOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions