Skip to content

Commit c4e3283

Browse files
author
potatoTVnet
committed
removed case sensitivity
1 parent 86e7a28 commit c4e3283

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const readline = require('readline').createInterface({
33
output: process.stdout
44
})
55
const Net = require('net')
6-
const port = 12001
6+
const port = 12000
77

88
const server = new Net.Server()
99

@@ -27,8 +27,8 @@ server.on('connection', function (socket) {
2727
})
2828

2929
readline.on('line', function (input) {
30-
if(input == "Q") process.exit(0)
31-
else socket.write(input)
30+
if(input.toUpperCase() == "Q") process.exit(0)
31+
else socket.write(input.toUpperCase())
3232
})
3333

3434
})

0 commit comments

Comments
 (0)