Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Signature regular expression #53

Open
@wli0503

Description

I ran into some random situations where emails were not parsed correctly. Part of the email was chopped out, for example:
Hi Test,\n\n-This is a test
Will result in -This is a test fragment being hidden and considered as part of signature which it should not be. After digging more into the problem, we figured out that:
(?m)(--\s*$|__\s*$|\w-$)|(^(\w+\s*){1,3} ym morf tneS$)
The first matching group is testing against \w-, which is causing the problem. I can't think out of a better way to solve the problem other than take \w-$ part out so it opens to any suggestion.

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

        AltStyle によって変換されたページ (->オリジナル) /