Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4910

Redaction regexes seem to get lowercased before being applied

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Component/s: CiviCase
    • Labels:
      None

      Description

      It seems like the system takes the regex and lowercases it before running against the string in question, but this changes the meaning of the regex.

      For example:
      /(Bob|Carol|Ted|Alice)/
      won't actually catch Bob in the string "I sent it to Bob on Jan 24.", because the regex being applied is
      /(bob|carol|ted|alice)/

      If the intention was to have all regexes be run case-insensitively, then I think it's better just to let the user add the "i" switch to the regex themselves if that's what they want.

        Attachments

          Activity

            People

            • Assignee:
              shailesh Shailesh Lende
              Reporter:
              demeritcowboy Dave D
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: