Skip to content

Commit

Permalink
Fix D.C.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoooook committed Nov 26, 2014
1 parent add59a9 commit 12a512c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LicenseValidator.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 12a512c

Please sign in to comment.