regcomp.c: Change \t to a - in debug dumping ranges
authorKarl Williamson <public@khwilliamson.com>
Thu, 5 Jan 2012 20:13:55 +0000 (13:13 -0700)
committerKarl Williamson <public@khwilliamson.com>
Fri, 13 Jan 2012 16:58:37 +0000 (09:58 -0700)
This changes the separator in the output of a range from a tab to a
hyphen, which is clearer.

regcomp.c

index 34eefc7..0cca900 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -11969,6 +11969,10 @@ Perl_regprop(pTHX_ const regexp *prog, SV *sv, const regnode *o)
                        while (*s) {
                            if (*s == '\n')
                                *s = ' ';
+                           }
+                           else if (*s == '\t') {
+                               *s = '-';
+                           }
                            s++;
                        }
                        if (s[-1] == ' ')