Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isMatch adaptive expression returns error when value is null or empty string #6354

Closed
craighanson opened this issue Jun 13, 2022 · 1 comment · Fixed by #6426
Closed

isMatch adaptive expression returns error when value is null or empty string #6354

craighanson opened this issue Jun 13, 2022 · 1 comment · Fixed by #6426
Assignees
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.

Comments

@craighanson
Copy link

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:

  1. Go to https://playgroundclient.azurewebsites.net/
  2. Enter expression --> isMatch(name, '([0-9])')
  3. Enter properties --> { "name": "" }
  4. Click 'Run'
  5. See error

Expected behavior

Instead of returning an error message the function should return false

@craighanson craighanson added bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team. labels Jun 13, 2022
@stevkan stevkan added customer-reported Issue is created by anyone that is not a collaborator in the repository. Bot Services Required for internal Azure reporting. Do not delete. Do not change color. labels Jun 13, 2022
@tracyboehrer tracyboehrer self-assigned this Jun 13, 2022
@tracyboehrer tracyboehrer added this to the R17 milestone Jun 14, 2022
@tracyboehrer tracyboehrer added ExemptFromDailyDRIReport Use this label to exclude the issue from the DRI report. customer-replied-to Indicates that the team has replied to the issue reported by the customer. Do not delete. labels Jun 14, 2022
@tracyboehrer tracyboehrer removed their assignment Jun 14, 2022
@tracyboehrer
Copy link
Member

Added to next milestone for review and analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
4 participants