From 12a512c0386ffff48d5548f56a3d7b12af4fe951 Mon Sep 17 00:00:00 2001 From: Zoooook Date: Wed, 26 Nov 2014 14:43:32 -0600 Subject: [PATCH] Fix D.C. --- LicenseValidator.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LicenseValidator.groovy b/LicenseValidator.groovy index 1ed9865..d5934f3 100644 --- a/LicenseValidator.groovy +++ b/LicenseValidator.groovy @@ -37,7 +37,7 @@ class LicenseValidator { case 'CA': return licenseNumber.matches(/^[a-zA-Z][0-9]{7}$/) // 1 Alpha + 7 Numeric case 'DE': return licenseNumber.matches(/^[0-9]{1,7}$/) // 1-7 Numeric - case 'DC': return licenseNumber.matches(/^([0-9]{7})|([0-9]{9})$/) // 7 Numeric or 9 Numeric + case 'DC': return licenseNumber.matches(/^([0-9]{7}|[0-9]{9})$/) // 7 Numeric or 9 Numeric case 'ID': return licenseNumber.matches(/^([0-9]{9}|[a-zA-Z]{2}[0-9]{6}[a-zA-Z])$/) // 9 Numeric or 2 Alpha + 6 Numeric + 1 Alpha case 'IL': return licenseNumber.matches(/^[a-zA-Z][0-9]{11}$/) // 1 Alpha + 11 Numeric case 'KS': return licenseNumber.matches(/^K[0-9]{8}$/) // 'K' + 8 Numeric