Skip to content

Commit ce82733

Browse files
committed
Merge pull request #67 from michaelficarra/patch-1
fixes #65: show implementation for strings/chars containing U+0007
2 parents 4033348 + 91b7f72 commit ce82733

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/Show.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exports.showCharImpl = function (c) {
1515
var code = c.charCodeAt(0);
1616
if (code < 0x20 || code === 0x7F) {
1717
switch (c) {
18-
case "\a": return "'\\a'";
18+
case "\x07": return "'\\a'";
1919
case "\b": return "'\\b'";
2020
case "\f": return "'\\f'";
2121
case "\n": return "'\\n'";
@@ -37,7 +37,7 @@ exports.showStringImpl = function (s) {
3737
case "\"":
3838
case "\\":
3939
return "\\" + c;
40-
case "\a": return "\\a";
40+
case "\x07": return "\\a";
4141
case "\b": return "\\b";
4242
case "\f": return "\\f";
4343
case "\n": return "\\n";

0 commit comments

Comments
 (0)