Skip to content

Commit 14f85c3

Browse files
authored
Escape the escape character
1 parent e848406 commit 14f85c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def cmd(self):
7272
cmd = ['eslint', '--format=json', '--stdin']
7373
stdin_filename = self.get_stdin_filename()
7474
if stdin_filename:
75-
cmd.append('--stdin-filename=' + stdin_filename.replace('$', '\$'))
75+
cmd.append('--stdin-filename=' + stdin_filename.replace('$', '\\$'))
7676
return cmd
7777

7878
def run(self, cmd, code):

0 commit comments

Comments
 (0)