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