Files
gitlab-foss/lib/error_tracking/sentry_client/token.rb
2023-05-15 18:10:04 +00:00

14 lines
232 B
Ruby

# frozen_string_literal: true
module ErrorTracking
class SentryClient
class Token
MASKED_TOKEN_REGEX = /\A\*+\z/
def self.masked_token?(token)
MASKED_TOKEN_REGEX.match?(token)
end
end
end
end