]> git.ipfire.org Git - thirdparty/git.git/blobdiff - quote.c
ci: avoid pounding on the poor ci-artifacts container
[thirdparty/git.git] / quote.c
diff --git a/quote.c b/quote.c
index 24a58ba454fdfd04dd441d787ea8202ea772c02f..bcc0dbc50d9b98bb5317398505d6548c98005c2f 100644 (file)
--- a/quote.c
+++ b/quote.c
@@ -55,7 +55,7 @@ void sq_quote_buf_pretty(struct strbuf *dst, const char *src)
        }
 
        for (p = src; *p; p++) {
-               if (!isalpha(*p) && !isdigit(*p) && !strchr(ok_punct, *p)) {
+               if (!isalnum(*p) && !strchr(ok_punct, *p)) {
                        sq_quote_buf(dst, src);
                        return;
                }