Sha256: cf7a7731cfa9afcc883ed14302310be1b5c2b00b035b963b9886ca5145872e89

Contents?: true

Size: 331 Bytes

Versions: 1

Compression:

Stored size: 331 Bytes

Contents

# encoding: utf-8
module LogStash
  module Outputs
    class Swift
      class PathValidator
        INVALID_CHARACTERS = "\^`><"

        def self.valid?(name)
          name.match(matches_re).nil?
        end

        def self.matches_re
          /[#{Regexp.escape(INVALID_CHARACTERS)}]/
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logstash-output-swift-0.1 lib/logstash/outputs/swift/path_validator.rb