Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

nobu
Copy link
Member

@nobu nobu commented Jul 12, 2025

Successive dots are prohibited in RFC5322.

@nobu nobu changed the title More checks in email regexp More checks in EMAIL_REGEXP Jul 12, 2025
@nobu nobu merged commit 0abac72 into ruby:master Jul 12, 2025
26 checks passed
@nobu nobu deleted the more-checks-in-email_regexp branch July 12, 2025 07:07
nobu added a commit to nobu/uri that referenced this pull request Jul 12, 2025
Fix the performance regression at ruby#172 for valid emails.

``` yml
prelude: |
  require 'uri/mailto'
  n = 1000
  re = URI::MailTo::EMAIL_REGEXP
benchmark:
  [email protected]: re.match?("[email protected]")
  [email protected]: re.match?("[email protected]")
```

|                      |released| 788274b| c5974f0|    this|
|:---------------------|-------:|-------:|-------:|-------:|
|[email protected]  |  3.538M|  4.509M|  4.597M|  8.089M|
|                      |       -|   1.27x|   1.30x|   2.29x|
|[email protected]  |  3.627M|  3.461M|  2.622M|  3.610M|
|                      |   1.38x|   1.32x|       -|   1.38x|
nobu added a commit to nobu/uri that referenced this pull request Jul 12, 2025
Fix the performance regression at ruby#172 for valid emails.

``` yml
prelude: |
  require 'uri/mailto'
  n = 1000
  re = URI::MailTo::EMAIL_REGEXP
benchmark:
  n.t..t.: re.match?("[email protected]")
  example: re.match?("[email protected]")
```

|         |released| 788274b| c5974f0|    this|
|:--------|-------:|-------:|-------:|-------:|
|n.t..t.  |  3.795M|  4.864M|  4.993M|  8.739M|
|         |       -|   1.28x|   1.32x|   2.30x|
|example  |  3.911M|  3.740M|  2.838M|  3.880M|
|         |   1.38x|   1.32x|       -|   1.37x|
nobu added a commit to nobu/uri that referenced this pull request Jul 12, 2025
Fix the performance regression at ruby#172 for valid emails.

``` yml
prelude: |
  require 'uri/mailto'
  n = 1000
  re = URI::MailTo::EMAIL_REGEXP
benchmark:
  n.t..t.: re.match?("[email protected]")
  example: re.match?("[email protected]")
```

|         |released| 788274b| c5974f0|    this|
|:--------|-------:|-------:|-------:|-------:|
|n.t..t.  |  3.795M|  4.864M|  4.993M|  8.739M|
|         |       -|   1.28x|   1.32x|   2.30x|
|example  |  3.911M|  3.740M|  2.838M|  3.880M|
|         |   1.38x|   1.32x|       -|   1.37x|
nobu added a commit to nobu/uri that referenced this pull request Jul 12, 2025
Fix the performance regression at ruby#172 for valid emails.

``` yml
prelude: |
  require 'uri/mailto'
  n = 1000
  re = URI::MailTo::EMAIL_REGEXP
benchmark:
  n.t..t.: re.match?("[email protected]")
  example: re.match?("[email protected]")
```

|         |released| 788274b| c5974f0|    this|
|:--------|-------:|-------:|-------:|-------:|
|n.t..t.  |  3.795M|  4.864M|  4.993M|  8.739M|
|         |       -|   1.28x|   1.32x|   2.30x|
|example  |  3.911M|  3.740M|  2.838M|  3.880M|
|         |   1.38x|   1.32x|       -|   1.37x|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant