Module: Contrast::Agent::Assess::Policy::Propagator::SubstitutionUtils
- Included in:
- Substitution
- Defined in:
- lib/contrast/agent/assess/policy/propagator/substitution_utils.rb
Overview
This module is specifically for String#(g)sub propagation
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.
Constant Summary collapse
- CAPTURE_GROUP_REGEXP =
/\\[[:digit:]]/.cs__freeze
- CAPTURE_NAME_REGEXP =
/\\k<[[:alpha:]]/.cs__freeze