summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-12-20 03:51:13 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-12-20 03:51:13 -0500
commit27c0f1cb11ab6df222a54ef1495fe36b58a8bfa0 (patch)
treea4915ad7b771d7597c2e29a7540ae63f7bbaf240 /bin
parentebf59ad7c93d95a8cffc5119ffc3d619ed3c2cd1 (diff)
meta-normalize-stdio: fix a bug with email addresses not being validated
Diffstat (limited to 'bin')
-rwxr-xr-xbin/meta-normalize-stdio4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/meta-normalize-stdio b/bin/meta-normalize-stdio
index 13e70ff..91af659 100755
--- a/bin/meta-normalize-stdio
+++ b/bin/meta-normalize-stdio
@@ -110,9 +110,9 @@ _email_regex = /^[a-zA-Z0-9.!\#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0
email_list = lambda {|name, ary|
if ary.class != Array
error "`#{name}' must be a list"
- elsif ary.count > 1
+ elsif not ary.empty?
preserve = 1
- if ary.first.end_with?("@parabola.nu") and ary.count > 2
+ if ary.first.end_with?("@parabola.nu") and ary.count >= 2
preserve = 2
end
ary = semiordered_list(preserve, restring(_email_regex)).call(name, ary)