lib/knapsack_pro/config/env.rb in knapsack_pro-5.0.0 vs lib/knapsack_pro/config/env.rb in knapsack_pro-5.1.0
- old
+ new
@@ -62,12 +62,13 @@
def user_seat
ENV['KNAPSACK_PRO_USER_SEAT'] ||
ci_env_for(:user_seat)
end
- def user_seat_hash
+ def masked_user_seat
return unless user_seat
- Digest::SHA2.hexdigest(user_seat)
+
+ user_seat.gsub(/(?<=\w{2})[a-zA-Z]/, "*")
end
def test_file_pattern
ENV['KNAPSACK_PRO_TEST_FILE_PATTERN']
end