Uploaded image for project: 'OpenShift CFE'
  1. OpenShift CFE
  2. CFE-27

Implement the RegEx Capture Group Obfuscator

XMLWordPrintable

      In CFE-25 we implemented the regex detector, here we need to implement the static replacement of capture groups: 

         # replace using a regex with capture groups and static replacements
         - type: regex
           replacementType: static
           pattern: "(?P<Year>\\d{4})-(?P<Month>\\d{2})-(?P<Day>\\d{2})"
           replacement:
             Year: "2000"
             Day: "01"
             Month: "12"
      

      AC:

      • well tested logic to detect the regex and replace the capture groups in the given replacement dictionary

       

              Unassigned Unassigned
              tjungblu@redhat.com Thomas Jungblut
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: