Catch blank keys as well.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1610 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
eric
2005-03-09 02:09:16 +00:00
parent 33ded3d79f
commit cd663da48c
@@ -58,7 +58,7 @@ public class KeyUtil
public static boolean verifyLuhn (String key)
{
// If there is a non digit, or it is all zeros.
if (key.matches("\\D") || key.matches("^[0]+$")) {
if (StringUtil.blank(key) || key.matches("\\D") || key.matches("^[0]+$")) {
return false;
}