Skip to content

Commit

Permalink
Dumper.xs: Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed May 25, 2021
1 parent 030107e commit 3b574ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dist/Data-Dumper/Dumper.xs
Expand Up @@ -605,7 +605,10 @@ dump_regexp(pTHX_ SV *retval, SV *val)
}
else {
/* If there was a \, we have copied it already, so all that is
* left to do here is the \x{...} escaping. */
* left to do here is the \x{...} escaping.
*
* Since this is a pattern, presumably created by perl, we can
* assume it is well-formed */
k = utf8_to_uvchr_buf(p, rend, NULL);
sv_catpvf(retval, "\\x{%" UVxf "}", k);
p += UTF8SKIP(p);
Expand Down

0 comments on commit 3b574ea

Please sign in to comment.