Commit 21ca8afdac for perl
commit 21ca8afdac8b0de00d870d2488385682b50fc871
Author: Karl Williamson <khw@cpan.org>
Date: Sun Oct 4 15:20:55 2026 -0600
regcomp.c: Use already existing macro
This expression has the same effect as an existing macro, which does it
slightly better as well.
Thanks to Tony Cook for pointing this out
diff --git a/regcomp.c b/regcomp.c
index a185274d63..6f2455b35d 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -10510,9 +10510,7 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth,
break;
} /* End of switch on char following backslash */
} /* end of handling backslash escape sequences */
- else if ( generic_isCC_(value, CC_VERTSPACE_)
- || is_VERTWS_cp_high(value))
- {
+ else if (isVERTWS_uvchr(value)) {
if (strict && ! skip_white) {
vFAIL("Literal vertical space in [] is illegal except"
" under /x");