Matching against partial words

Created on 8 March 2023, over 1 year ago

I have specified in the "Reject patterns" field "free".

If I attempt to include a word which contains this partially, the validation fails. Eg "freetime" is not allowed to be submitted.

πŸ› Bug report
Status

Closed: works as designed

Version

2.0

Component

User interface

Created by

πŸ‡¬πŸ‡§United Kingdom iancawthorne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @iancawthorne
  • Status changed to Closed: works as designed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States AltaGrade

    Any pattern in Reject Patterns will be rejected. Please use the dev branch of the module and place "freetime" in Allowed Patterns.

    To get the dev branch use one of:

    git clone --branch '2.0.x' git@git.drupal.org:project/protected_forms.git
    composer require 'drupal/protected_forms:2.0.x-dev@dev'
    wget https://ftp.drupal.org/files/projects/protected_forms-2.0.x-dev.tar.gz
  • πŸ‡¬πŸ‡§United Kingdom iancawthorne

    Is that really works as designed? There could be any number of matches against words which would need white listing. This makes this module unusable.

Production build 0.71.5 2024