Sha256: 3e1d240a916aef9c7a8a14ae972e9661541998f6d7dbabadc021fab714c87393

Contents?: true

Size: 328 Bytes

Versions: 49

Compression:

Stored size: 328 Bytes

Contents

# encoding: utf-8
module LogStash
  module Outputs
    class S3
      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

49 entries across 49 versions & 3 rubygems

Version Path
logstash-output-s3-4.0.9 lib/logstash/outputs/s3/path_validator.rb
logstash-output-s3-4.0.8 lib/logstash/outputs/s3/path_validator.rb
logstash-output-s3-4.0.7 lib/logstash/outputs/s3/path_validator.rb
logstash-output-s3-4.0.6 lib/logstash/outputs/s3/path_validator.rb
logstash-output-s3-4.0.5 lib/logstash/outputs/s3/path_validator.rb
logstash-output-s3-4.0.3 lib/logstash/outputs/s3/path_validator.rb
logstash-output-s3-4.0.2 lib/logstash/outputs/s3/path_validator.rb
logstash-output-s3-4.0.1 lib/logstash/outputs/s3/path_validator.rb
logstash-output-s3-4.0.0 lib/logstash/outputs/s3/path_validator.rb