lib/cocina/models/validators/date_time_validator.rb in cocina-models-0.84.0 vs lib/cocina/models/validators/date_time_validator.rb in cocina-models-0.84.1

- old
+ new

@@ -96,10 +96,12 @@ # * YYYY # * YYYY-MM # # So we catch the false positives from the upstream gem and allow # these two patterns to validate - /\A\d{4}(-0[1-9]|-1[0-2])?\Z/.match?(value) + # + # Also have a temporary exemption for MM/DD/YY + %r{\A((\d{4}(-0[1-9]|-1[0-2])?)|(\d{2}/\d{2}/\d{2}))\Z}.match?(value) end def druid @druid ||= attributes[:externalIdentifier] end