Sha256: 08f5eafda7b5463d8acf4944d032ff21c7742ebe14fd1758b4f5dbcea94e5b12
Contents?: true
Size: 535 Bytes
Versions: 44
Compression:
Stored size: 535 Bytes
Contents
# frozen_string_literal: true module Cocina module Models module Mapping module FromMods # Sniffs value URIs class ValueURI SUPPORTED_PREFIXES = [ 'http' ].freeze def self.sniff(uri, notifier) if uri.present? && !uri.starts_with?(*SUPPORTED_PREFIXES) notifier.warn('Value URI has unexpected value', { uri: uri }) end uri.presence end end end end end end
Version data entries
44 entries across 44 versions & 1 rubygems