Wrap long line, fix regex.

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