lib/raven/processor/sanitizedata.rb in sentry-raven-0.15.3 vs lib/raven/processor/sanitizedata.rb in sentry-raven-0.15.4
- old
+ new
@@ -1,12 +1,13 @@
+# frozen_string_literal: true
require 'json'
module Raven
class Processor::SanitizeData < Processor
- STRING_MASK = '********'
+ STRING_MASK = '********'.freeze
INT_MASK = 0
- DEFAULT_FIELDS = %w(authorization password passwd secret ssn social(.*)?sec)
+ DEFAULT_FIELDS = %w(authorization password passwd secret ssn social(.*)?sec).freeze
CREDIT_CARD_RE = /^(?:\d[ -]*?){13,16}$/
- REGEX_SPECIAL_CHARACTERS = %w(. $ ^ { [ ( | ) * + ?)
+ REGEX_SPECIAL_CHARACTERS = %w(. $ ^ { [ ( | ) * + ?).freeze
attr_accessor :sanitize_fields, :sanitize_credit_cards
def initialize(client)
super