medic / cht-user-management

GNU Affero General Public License v3.0
3 stars 1 forks source link

String Validator Fails with French Characters #87

Closed paulpascal closed 3 months ago

paulpascal commented 3 months ago

Description:

Currently, our string validator implementation encounters issues when handling strings containing French characters such as 'é', 'ô', 'î', 'ê', etc. These characters are not properly handled by the validator, leading to incorrect formatting.

Steps to Reproduce:

  1. Provide a string input containing French characters to the string validator. eg Université, or Elève or Prêtre
  2. Observe the behavior of the validator when handling the input.
  3. Note any incorrect formatting results. (resulting Universit, Elve, Prtre)

Expected Behavior:

The string validator should be able to handle French characters properly, ensuring that they are validated and formatted correctly according to our requirements.

Proposed Solution:

To address this issue, we need to enhance the string validator implementation to properly handle French characters. This may involve updating the regular expressions used for formatting to include support for French characters.