Skip to content

Commit 65e3cf3

Browse files
committed
testing email
1 parent 3b5f268 commit 65e3cf3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

spec/type_aliases/email_spec.rb

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
'[email protected] (Joe Smith)',
5757
5858
59+
'random stuff multiline
60+
61+
more random stuff $^*!',
5962
'”(),:;<>[\]@example.com',
6063
'just”not”[email protected]',
6164
'this\ is"really"not\[email protected]'].each do |value|

types/email.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address
2-
type Stdlib::Email = Pattern[/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/]
2+
type Stdlib::Email = Pattern[/\A[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)\z/]

0 commit comments

Comments
 (0)