Skip to content

strings.TrimRight remove one more letter. #12771

@rockneurotiko

Description

@rockneurotiko

I don't know if this is the expected result, but I hope it isn't:

a := strings.TrimRight("1234t.html", ".html")
fmt.Println(a) // Expected 1234t, get 1234

Playground

Edit (Information about my machine according to the guidelines)
Version: 1.5.1
OS: ArchLinux x86_64
The other things are already answered 😄

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