lib/yoti/util/age_processor.rb in yoti-1.3.1 vs lib/yoti/util/age_processor.rb in yoti-1.4.0

- old
+ new

@@ -1,11 +1,11 @@ module Yoti # Process age attribute class AgeProcessor - AGE_PATTERN = "age_(over|under):[1-9][0-9]?[0-9]?" + AGE_PATTERN = 'age_(over|under):[1-9][0-9]?[0-9]?' # check if the key matches the format age_[over|under]:[1-999] def self.is_age_verification(age_field) - return /#{AGE_PATTERN}/.match?(age_field) + /#{AGE_PATTERN}/.match?(age_field) end end -end \ No newline at end of file +end