ruby_regex 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 29/09/2010
2
+ -------------------------
3
+ Fix bug in email regexp
4
+
1
5
  18/5/2010
2
6
  -------------------------
3
7
  Add RubyRegex::TwitterUsername
data/lib/ruby_regex.rb CHANGED
@@ -48,5 +48,5 @@ module RubyRegex
48
48
  # Email
49
49
  # From the email regex research: http://fightingforalostcause.net/misc/2006/compare-email-regex.php
50
50
  # Authors: James Watts and Francisco Jose Martin Moreno
51
- Email = /^([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,6})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)$/i
51
+ Email = /^([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w-]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,6})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)$/i
52
52
  end
@@ -1,7 +1,6 @@
1
1
  valid:
2
2
  - "l3tt3rsAndNumb3rs@domain.com"
3
3
  - "has-dash@domain.com"
4
- - "hasApostrophe.o'leary@domain.org"
5
4
  - "uncommonTLD@domain.museum"
6
5
  - "uncommonTLD@domain.travel"
7
6
  - "uncommonTLD@domain.mobi"
@@ -14,7 +13,6 @@ valid:
14
13
  - "dot.inLocal@foo.com"
15
14
  - "a@singleLetterLocal.org"
16
15
  - "singleLetterDomain@x.org"
17
- - "&*=?^+{}'~@validCharsInLocal.net"
18
16
  - "foor@bar.newTLD"
19
17
 
20
18
 
@@ -27,12 +25,15 @@ invalid:
27
25
  - "two@@signs.com"
28
26
  - "colonButNoPort@127.0.0.1:"
29
27
  - ""
28
+ - "&*=?^+{}'~@validCharsInLocal.net"
29
+ - "hasApostrophe.o'leary@domain.org"
30
30
  - ".localStartsWithDot@domain.com"
31
31
  - "localEndsWithDot.@domain.com"
32
32
  - "two..consecutiveDots@domain.com"
33
33
  - "domainStartsWithDash@-domain.com"
34
34
  - "domainEndsWithDash@domain-.com"
35
35
  - "numbersInTLD@domain.c0m"
36
+ - "mike!@gmail.com"
36
37
  - "missingTLD@domain."
37
38
  - "! #$%(),/;<>[]`|@invalidCharsInLocal.org"
38
39
  - "invalidCharsInDomain@! #$%(),/;<>_[]`|.org"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_regex
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Emili Parreno
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-26 00:00:00 +02:00
18
+ date: 2010-09-29 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21