Add $startswith and $endswith string functions

XMLWordPrintable

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Normal
    • 1.4
    • Affects Version/s: 1.3.2
    • Component/s: Scripting
    • None

      It would be helpful for my scripts if there were python-line startswith and endswith functions.

      Use case example:

      $if($and(
                 $startswith(%album%,The Best of),
                 $endswith(%album%, %artist%)
           ),
           $set(album,$replace(%album%, %artist%,)))

      to convert "The Best of Frank Sinatra" to "The Best of".

            Assignee:
            Sambhav Kothari
            Reporter:
            Sophist
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                1.4