Skip to content

Actually, the email regex matches WAY more than it should. #517

Open
@puellanivis

Description

@puellanivis

Package version eg. v8, v9:

Master

Code sample, to showcase or reproduce:

fmt.Println(emailRegex.MatchString(`"\"@example.com`))

Produces true, it should produce false.

The fault is a missing \\\\ to match a backspace in the subexpression covering quoted-pair, as a result although the quoted-string should require \ and " to be quoted, both are accepted even without escaping.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions