Repository navigation
v2.0.5
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
AlphaSpaceRuleclass, 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.