Sha256: bc34aabf52218a3e77e4168cadf45774f245f39d40200e1be0e7832d1bac6e68

Contents?: true

Size: 327 Bytes

Versions: 3

Compression:

Stored size: 327 Bytes

Contents

module ValidateParams
  module Validatable
    module Utilities
      class Scrubber
        def self.scrub(input_string, replacement: Validatable.configuration.scrub_invalid_utf8_replacement)
          input_string
            .scrub(replacement)
            .tr("\u0000", replacement)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
validate-params-0.14.0 lib/validate_params/utilities/scrubber.rb
validate-params-0.13.1 lib/validate_params/utilities/scrubber.rb
validate-params-0.13.0 lib/validate_params/utilities/scrubber.rb