Sha256: 98787f4242ecc27c1ac0d4a3e8069877c7338597375e4bea51246d3d223ded33

Contents?: true

Size: 222 Bytes

Versions: 2

Compression:

Stored size: 222 Bytes

Contents

module VCardio
  module Parser
    #
    # @private
    #
    class ValueParser
      def self.call(part)
        value = part.split(/;(?<!\\;)/, -1)
        value.length > 1 ? value : value[0]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vcardio-0.1.1 lib/vcardio/parser/value_parser.rb
vcardio-0.1.0 lib/vcardio/parser/value_parser.rb