Skip to content

Regex is not complete #1

@georf

Description

@georf

localRecipient=$(echo "$@" | grep -Po '\s(\w)+$')

\w only covers [a-zA-Z0-9_], but linux user names can also contains -. I added it to this:

localRecipient=$(echo "$@" | grep -Po '\s(\w|-)+$')

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