isMatch adaptive expression returns error when value is null or empty string #6354
Labels
Bot Services
Required for internal Azure reporting. Do not delete. Do not change color.
bug
Indicates an unexpected problem or an unintended behavior.
customer-replied-to
Indicates that the team has replied to the issue reported by the customer. Do not delete.
customer-reported
Issue is created by anyone that is not a collaborator in the repository.
ExemptFromDailyDRIReport
Use this label to exclude the issue from the DRI report.
needs-triage
The issue has just been created and it has not been reviewed by the team.
Version
4.16.0
Describe the bug
The prebuilt adaptive expression 'isMatch' returns the error message 'regular expression is empty.' when the target string is null or empty string. This makes the function hard to use and would be better if it simple returned false.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Instead of returning an error message the function should return false
The text was updated successfully, but these errors were encountered: