class LogStash::Outputs::Swift::PathValidator
Constants
- INVALID_CHARACTERS
Public Class Methods
matches_re()
click to toggle source
# File lib/logstash/outputs/swift/path_validator.rb, line 12 def self.matches_re /[#{Regexp.escape(INVALID_CHARACTERS)}]/ end
valid?(name)
click to toggle source
# File lib/logstash/outputs/swift/path_validator.rb, line 8 def self.valid?(name) name.match(matches_re).nil? end