diff options
-rw-r--r-- | mdoc_validate.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 30d7ea8d..ce90c0f3 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -747,9 +747,7 @@ post_dt(POST_ARGS) if (NULL != (nn = mdoc->last->child)) for (p = nn->string; *p; p++) { - if ( ! isalpha((u_char)*p)) - continue; - if (isupper((u_char)*p)) + if (toupper((u_char)*p) == *p) continue; if ( ! mdoc_nmsg(mdoc, nn, MANDOCERR_UPPERCASE)) return(0); |