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

Inputmask sanitizes special characters #423

Open
pandusen opened this issue Oct 28, 2024 · 0 comments
Open

Inputmask sanitizes special characters #423

pandusen opened this issue Oct 28, 2024 · 0 comments
Labels
bug This label could be used to identify issues that are caused by a defect in the product.

Comments

@pandusen
Copy link

Description

When adding special characters to input masks for fields, eg. Regex expressions, the field gets sanitized after "Save Fields" (Backlashes are removed)
It gets taken into account when saved first time, but is removed from the visual interface. If saving the edit a second time, it breaks
the expression.

Expected behavior:
Special characters remain in the input mask field, after fields have been saved and reopened for edit.

Step-by-step reproduction instructions

  1. Add a new group with a "text input" field.

  2. Fill out the options accordingly.

  3. Activate RegEx for "input masking"

  4. Write expression eg. [a-z]{1,10}\s[a-z]{1,10}

  5. Update the field. you can press edit again and see that (this does not sanitize the field) (close or update)

  6. Press "Save Fields" the RegEx expression now works as expected for the respected field.

  7. Edit the field again. Field is now sanitized and the backlash has been removed from the syntax.
    8 Update and save the field again, without editing anything. The expression is now broken and longer works as expected.

Screenshots, screen recording, code snippet or Help Scout ticket

No response

Environment info

No response

Is the issue you are reporting a regression

No

@pandusen pandusen added the bug This label could be used to identify issues that are caused by a defect in the product. label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This label could be used to identify issues that are caused by a defect in the product.
Projects
None yet
Development

No branches or pull requests

1 participant