lib/cocina/models/validators/date_time_validator.rb in cocina-models-0.84.4 vs lib/cocina/models/validators/date_time_validator.rb in cocina-models-0.84.5

- old
+ new

@@ -74,11 +74,10 @@ # # * Y-20555 # # So we catch the false positives from the upstream gem and allow # this pattern to validate - /\AY-?\d{5,}\Z/.match?(value) || - /\A-?\d{1,3}\Z/.match?(value) # temporarily allow format violations + /\AY-?\d{5,}\Z/.match?(value) end def valid_iso8601?(value) DateTime.iso8601(value) true