lib/br_documents/ie/rj.rb in br_documents-0.0.9 vs lib/br_documents/ie/rj.rb in br_documents-0.0.10
- old
+ new
@@ -3,10 +3,10 @@
module BrDocuments
module IE
class RJ < Pattern1
def initialize(number)
super
- @mask = /^(\d{2}\.\d{3}\.\d{2}\-\d{1})$|^(\d{8})$/
+ @mask = /^(\d{2}\.\d{3}\.\d{2}\-?\d{1})$|^(\d{8})$/
@weight = [2, 7, 6, 5, 4, 3, 2]
end
private
def format_ie(number)