Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b5bb610

Browse files
committed
fixes skygragon#7: handle '\n' correctly
Signed-off-by: Eric Wang <skygragon@gmail.com>
1 parent 8f4bf34 commit b5bb610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commands/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ cmd.handler = function(argv) {
5959
if (e) return console.log('ERROR:', e);
6060

6161
problem.file = argv.filename;
62-
problem.testcase = testcase.replace('\\n', '\n');
62+
problem.testcase = testcase.replace(/\\n/g, '\n');
6363

6464
console.log('\nInput data:');
6565
console.log(problem.testcase);

0 commit comments

Comments
 (0)