Sha256: 5591ae3286dac44f9f8ffd7ba4df9c7da7da953357225449236f56e86a7a0405

Contents?: true

Size: 421 Bytes

Versions: 127

Compression:

Stored size: 421 Bytes

Contents


module LogStash; module Config; module StringEscape
  class << self
    def process_escapes(input)
      input.gsub(/\\./) do |value|
        process(value)
      end
    end

    private
    def process(value)
      case value[1]
      when '"', "'", "\\"
        value[1]
      when "n"
        "\n"
      when "r"
        "\r"
      when "t"
        "\t"
      else
        value
      end
    end
  end
end end end

Version data entries

127 entries across 127 versions & 5 rubygems

Version Path
logstash-core-6.8.23-java lib/logstash/config/string_escape.rb
logstash-core-6.8.22-java lib/logstash/config/string_escape.rb
logstash-core-6.8.21-java lib/logstash/config/string_escape.rb
logstash-core-6.8.20-java lib/logstash/config/string_escape.rb
logstash-output-scalyr-0.2.1.beta vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/lib/logstash/config/string_escape.rb
logstash-core-6.8.19-java lib/logstash/config/string_escape.rb
logstash-output-scalyr-0.2.0 vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/lib/logstash/config/string_escape.rb
logstash-output-scalyr-0.2.0.beta vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/lib/logstash/config/string_escape.rb
logstash-output-scalyr-0.1.26.beta vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/lib/logstash/config/string_escape.rb
logstash-output-scalyr-0.1.25.beta vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/lib/logstash/config/string_escape.rb
logstash-output-scalyr-0.1.24.beta vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/lib/logstash/config/string_escape.rb
logstash-output-scalyr-0.1.23.beta vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/lib/logstash/config/string_escape.rb
logstash-output-scalyr-0.1.22.beta vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/lib/logstash/config/string_escape.rb
logstash-output-scalyr-0.1.21.beta vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/lib/logstash/config/string_escape.rb
logstash-output-scalyr-0.1.20.beta vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/lib/logstash/config/string_escape.rb
logstash-core-6.8.18-java lib/logstash/config/string_escape.rb
logstash-output-scalyr-0.1.19.beta vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/lib/logstash/config/string_escape.rb
logstash-core-6.8.17-java lib/logstash/config/string_escape.rb
logstash-output-scalyr-0.1.18.beta vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/lib/logstash/config/string_escape.rb
logstash-output-scalyr-0.1.17.beta vendor/bundle/jruby/2.5.0/gems/logstash-core-5.6.4-java/lib/logstash/config/string_escape.rb