Skip to content
Snippets Groups Projects
Commit 444891f0 authored by rswindell's avatar rswindell
Browse files

Fix the beep (ASCII 7) character detection in lib.is_valid()

JavaScript doesn't support the \a (alert) escape char apparently.
parent 4d620b71
No related branches found
No related tags found
No related merge requests found
......@@ -33,11 +33,11 @@ function is_valid(buf)
switch(e) {
case '\r':
case '\n':
case '\a':
case '\x07': // Beep/BEL ('\a')
case '\b':
case '\t':
case '\f':
case '\x1b': // ESC
case '\x1b': // ESC ('\e')
case '\xff': // Telnet IAC
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment