Skip to content

v2.0.5

Choose a tag to compare

@joalvm joalvm released this 08 Jun 23:01
· 5 commits to master since this release

This commit optimizes the AlphaSpaceRule validation rule by updating the regular expression pattern to allow for any Unicode letter and space characters. This improves the accuracy and flexibility of the validation for alphabetic and space values.

The changes made in this commit include:

  • In the AlphaSpaceRule class, the regular expression pattern is updated from /^[a-zA-Z]+(?:\s[a-zA-Z]+)*$/ to /^[\p{L}\s]+$/u.

These changes address the issue with the previous regular expression pattern and ensure that the validation rule correctly handles alphabetic and space values.

Refactor the AlphaSpaceRule validation rule to optimize performance and accuracy.