debian-mirror-gitlab/lib/error_tracking/sentry_client/token.rb
2023-07-09 08:55:56 +05:30

13 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