Verified Commit 40875e05 authored by Camil Staps's avatar Camil Staps 🚀

Don't show silly unicode requests in statistics

parent 2f33eb06
......@@ -28,7 +28,7 @@ ws.on('request', function(req){
tail.stdout.on('data', function(data){
var match = /<-- (\{.*\})/.exec(data);
if (match != null) {
if (match != null && !match[1].match(/u[0-9a-f]{4}/)) {
console.log(match[1]);
con.sendUTF(match[1]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment