Skip to content

Commit a268a7b

Browse files
Expand test cases of # for Bash
1 parent b3cbec5 commit a268a7b

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

test/fixtures/unix.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2002,6 +2002,22 @@ export const escape = {
20022002
input: "a\t#b",
20032003
expected: "a\\\t\\#b",
20042004
},
2005+
{
2006+
input: "#a #b",
2007+
expected: "\\#a\\ \\#b",
2008+
},
2009+
{
2010+
input: "#a\t#b",
2011+
expected: "\\#a\\\t\\#b",
2012+
},
2013+
{
2014+
input: "a #b #c",
2015+
expected: "a\\ \\#b\\ \\#c",
2016+
},
2017+
{
2018+
input: "a\t#b\t#c",
2019+
expected: "a\\\t\\#b\\\t\\#c",
2020+
},
20052021
],
20062022
"dollar signs ('$')": [
20072023
{

0 commit comments

Comments
 (0)