Skip to content
Browse files

Include lowercase characters in HP serial numbers

  • Loading branch information...
1 parent c5a0b7a commit dd71f1368d2061785dd37461b73d69cc73ad2528 @alhafoudh committed Nov 4, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/classify.rb
View
3 lib/classify.rb
@@ -1,7 +1,8 @@
module WarrantyCheck
VENDOR_PATTERNS = {
- WarrantyCheck::HP => ["^[A-Z]{3}[0-9]{3}[0-9a-zA-Z]{4}$"], # 10
+
+ WarrantyCheck::HP => ["^[a-zA-Z]{3}[0-9]{3}[0-9a-zA-Z]{4}$"], # 10
WarrantyCheck::DELL => ["^[0-9a-zA-Z]{5,7}$"], # 5-7
WarrantyCheck::IBM => ["^[0-9a-zA-Z]{7}$", "^[0-9a-zA-Z]{10}$", "^[0-9a-zA-Z]{12}$"], # 7,10,12
}

0 comments on commit dd71f13

Please sign in to comment.
Something went wrong with that request. Please try again.