[TextMod] Functions are already available in the platform

[TextMod] Functions are already available in the platform

  
Forge Component
(3)
Published on 8 Oct by Hanno
3 votes
Published on 8 Oct by Hanno

Just saw this component, was curious if you know the trim functions are also available as functions in the platform? Also the regex function is available in the text extension (default platform component)?

Still some functions in the component that aren't but for functions that exist it can be better to use the one in the platform, right? Or do these functions work in another way?

Kind regards,
Evert

Hi Evert

I agree that one should rather use the platform functions. Trim function on the platform only trims whitespace, whereas the function in this component trims any string you pass in.

Regex replace will be removed to promote usage of the existing function in the platform extension.

Thank you for your input!

Hanno

Hanno Coetzee wrote:

I agree that one should rather use the platform functions. Trim function on the platform only trims whitespace, whereas the function in this component trims any string you pass in.

Would be nice if you add this in the description of the component, wasn't clear to me, so can also be not clear for others

Nice to see this quick reaction and adjustments.

Kind regards,
Evert


Thank you, Evert. I will work on expanding the description section!