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

fix(validation): correct regexp validation for empty strings #1592

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

soleksy-splunk
Copy link
Contributor

@soleksy-splunk soleksy-splunk commented Feb 19, 2025

Issue number:
https://splunk.atlassian.net/browse/ADDON-78537

PR Type

What kind of change does this PR introduce?

  • Feature
  • Bug Fix
  • Refactoring (no functional or API changes)
  • Documentation Update
  • Maintenance (dependency updates, CI, etc.)

Summary

Changes

Remove trim for string data as we do not do it on backend.

Correctly display error for invalid regexp expression. Full regexp displayed in error message instead of just first character.

User experience

UI validation reflects backend.

Checklist

If an item doesn't apply to your changes, leave it unchecked.

@hetangmodi-crest
Copy link
Contributor

Should we also add the SmartX UI tests to capture the actual behaviour - front-end and back-end validations?

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

Successfully merging this pull request may close these issues.

4 participants