Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2850

string_replace function

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      We have string_length string_tail etc. but no string_replace. Instead you have to use regex_replace (and know that it exists). A simpler version of regex_replace called string_replace would be nice.

       

      See:

      https://github.com/cfengine/core/blob/master/libpromises/evalfunction.c

      https://docs.cfengine.com/docs/3.10/reference-functions-regex_replace.html

      https://tracker.mender.io/browse/CFE-2840

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                karlhto Karl Hole Totland
                Reporter:
                olehermanse Ole Herman Schumacher Elgesem
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel