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

Simplification of CRM_Utils_String::stripSpaces

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Simplify stripSpaces by using the built in trim() instead of the '^\s*' and '\s*$' regular expressions. Provides minor performance improvement as well.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              shadesofgraylin Graylin Kim
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: