debian-mirror-gitlab/lib/error_tracking/sentry_client/token.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
232 B
Ruby
Raw Normal View History

2023-07-09 08:55:56 +05:30
# 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