lib/cocina/models/validators/date_time_validator.rb in cocina-models-0.84.1 vs lib/cocina/models/validators/date_time_validator.rb in cocina-models-0.84.2
- old
+ new
@@ -98,10 +98,10 @@
#
# So we catch the false positives from the upstream gem and allow
# these two patterns to validate
#
# 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)
+ %r{\A((\d{4}(-0[1-9]|-1[0-2])?)|(\d{1,2}/\d{1,2}/\d{2}))\Z}.match?(value)
end
def druid
@druid ||= attributes[:externalIdentifier]
end