lib/contrast/agent/assess/policy/propagator/substitution.rb in contrast-agent-4.8.0 vs lib/contrast/agent/assess/policy/propagator/substitution.rb in contrast-agent-4.9.0

- old
+ new

@@ -1,9 +1,9 @@ # Copyright (c) 2021 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true -require 'contrast/components/interface' +require 'contrast/components/logger' require 'contrast/utils/duck_utils' module Contrast module Agent module Assess @@ -13,11 +13,10 @@ # # Disclaimer: there may be a better way, but we're # in a 'get it work' state. hopefully, we'll be in # a 'get it right' state soon. class Substitution - include Contrast::Components::Interface - access_component :logging + include Contrast::Components::Logger::InstanceMethods CAPTURE_GROUP_REGEXP = /\\[[:digit:]]/.cs__freeze CAPTURE_NAME_REGEXP = /\\k<[[:alpha:]]/.cs__freeze class << self