Sha256: 6686e68844bb0ebc611eba799d5db76573cf05760b597e2af15c3e6691357c9d

Contents?: true

Size: 210 Bytes

Versions: 2

Compression:

Stored size: 210 Bytes

Contents

# frozen_string_literal: true

module Cocina
  module Models
    DOI = Types::String.constrained(
      format: %r{^10\.25740/druid:[b-df-hjkmnp-tv-z]{2}[0-9]{3}[b-df-hjkmnp-tv-z]{2}[0-9]{4}$}i
    )
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocina-models-0.61.1 lib/cocina/models/doi.rb
cocina-models-0.61.0 lib/cocina/models/doi.rb