Sha256: 6bb8e996353df353a32d995ccf584368b4806e52111cfd13695f38fe4b45abfd
Contents?: true
Size: 899 Bytes
Versions: 18
Compression:
Stored size: 899 Bytes
Contents
# Copyright (c) 2023 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true module Contrast module Utils module Assess # This module extends the Split class which is specifically for String#split & String#grapheme_clusters # propagation it propagates tag ranges from a string to elements within an untracked array module SplitUtils private # Quick hook to the String#split propagation node in our Assess policy # # @return [Contrast::Agent::Assess::Policy::PropagationNode] String#split node def split_node @_split_node ||= Contrast::Agent::Assess::Policy::Policy.instance.propagators.find do |node| node.class_name == 'String' && node.method_name == :split && node.instance_method? end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems