mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-20 14:11:11 +00:00
14 lines
232 B
Ruby
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
|