]> git.corax.cc Git - toolbox/commit
include/in: Fix bug in is_alpha() and is_alnum()
authorMatthias Kruk <m@m10k.eu>
Tue, 20 Apr 2021 13:30:44 +0000 (22:30 +0900)
committerMatthias Kruk <m@m10k.eu>
Tue, 20 Apr 2021 13:30:44 +0000 (22:30 +0900)
commit0cefd82f9bf08c319b46215c2f0e96d1cd243a9f
tree90752a5d5637229ccd957939a861502d03eee5fd
parent19222a436d49a9a5c34ca341daecee0efa178cb1
include/in: Fix bug in is_alpha() and is_alnum()

The is_alpha() and is_alnum() functions fail to recognize strings
containing mixed case and digits (in the case of the latter). This
commit fixes the implementations by making perform the check with a
regular expression instead of delegating the work to is_upper(),
is_lower(), and is_digits().
include/is.sh