Skip to content

Commit 617d119

Browse files
committed
[Tests] quote: the tilde test escapes every ~, not just a leading one (#9)
1 parent 59bbf8b commit 617d119

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/quote.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ test('quote', function (t) {
3030
t.end();
3131
});
3232

33-
test('quote tilde (escapes leading ~ to prevent shell tilde-expansion)', function (t) {
33+
test('quote tilde (escapes every ~ to prevent shell tilde-expansion)', function (t) {
3434
t.equal(quote(['~']), '\\~');
3535
t.equal(quote(['~/foo']), '\\~/foo');
3636
t.equal(quote(['~root']), '\\~root');

0 commit comments

Comments
 (0)