Skip to content

Add REGEX function#22

Merged
ashishven merged 1 commit intomainfrom
regex-function
Feb 16, 2026
Merged

Add REGEX function#22
ashishven merged 1 commit intomainfrom
regex-function

Conversation

@ashishven
Copy link

@ashishven ashishven commented Feb 13, 2026

Adds REGEX function https://help.salesforce.com/s/articleView?id=platform.customize_functions_regex.htm&type=5

pull pr and run 'npm run start' to test

Copy link
Member

@ombr ombr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this, did we test some basic salesforce regex to make sure our regex works the same way ?

const pattern =
regexText.startsWith('^') && regexText.endsWith('$')
? regexText
: `^(?:${regexText})$`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not ?

Suggested change
: `^(?:${regexText})$`;
: `^${regexText}$`;

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image to be the same as SF

@ashishven ashishven requested a review from ombr February 13, 2026 09:08
@ashishven ashishven merged commit 37578c5 into main Feb 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants