extraction of text beween X and Y is doing so for wrong X and Y

Description

There are two issues with the text function below:

1. spelling. "betweem" should be "between"
2. the indices are not calculated correctly. If you choose text mid-word, like "York" from "New York City", it will extract from indices 0 to 4 aka [0,4), 0 inclusive to 4 exclusive, rather than 4 to 7, aka [4,7] note inclusive/inclusive which makes better sense especially when going to the last character of the string.

The current result of extract text "York" from "New York City" is "New " (new with trailing space). It should be "York"

Environment

None
Done

Assignee

Matt Hutton

Reporter

Tim Harsch

Labels

None

Reviewer

None

Story point estimate

None

Components

Sprint

None

Fix versions

Affects versions

Priority

Medium