Skip to content

Inputmask sanitizes special characters #423

Open
@pandusen

Description

@pandusen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis label could be used to identify issues that are caused by a defect in the product.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions