Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-923

Add $startswith and $endswith string functions

    Details

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

      Description

      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".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                samj1912 Sambhav Kothari
                Reporter:
                sophist Sophist
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: