We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78e8234 commit ad70a18Copy full SHA for ad70a18
test.js
@@ -63,3 +63,8 @@ test('line endings - works at EOF', t => {
63
test('handles weird escaping', t => {
64
t.is(stripJsonComments(String.raw`{"x":"x \"sed -e \\\"s/^.\\\\{46\\\\}T//\\\" -e \\\"s/#033/\\\\x1b/g\\\"\""}`), String.raw`{"x":"x \"sed -e \\\"s/^.\\\\{46\\\\}T//\\\" -e \\\"s/#033/\\\\x1b/g\\\"\""}`);
65
});
66
+
67
+test.failing('handles malformed block comments', t => {
68
+ t.is(stripJsonComments('[] */'), '[] */');
69
+ t.is(stripJsonComments('[] /*'), '[] /*'); // Fails
70
+});
0 commit comments