Skip to content
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.

Support Instance_num parameter of SUBSTITUTE function. Fixed issue #530 #531

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

twaltari
Copy link

Enhances SUBSTITUTE() function with the fourth, optional parameter instance_num.
https://support.office.com/en-us/article/substitute-function-6434944e-a904-4336-a9b0-1e58df3bc332

Fixes #530

Added three unit tests (TextFunctionsTests.SubstituteShouldReplaceOnlyFirstInstance, TextFunctionsTests.SubstituteShouldReplaceOnlySecondInstance and StringFunctionsTests.SubstituteShouldReplaceOnlySecondInstanceFound) to verify this works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant