Skip to content

reverse-string: string with newline #2073

Open
@glennj

Description

@glennj

This came up in the bash track: what to do with strings containing newlines?

A common solution in shell would be to pipe the input into rev which would treat the input as lines and not a single string.

Suggest a new case:

    {
      "description": "with a newline",
      "property": "reverse",
      "input": {
        "value": "Hello,\nWorld!"
      },
      "expected": "!dlroW\n,olleH"
    }

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