Don't call valid control characters invalid

This commit is contained in:
Karol Stasiak 2021-06-29 02:29:12 +02:00
parent da862069a7
commit faf97cee1f
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ abstract class MfParser[T](fileId: String, input: String, currentDirectory: Stri
case _: Failure[_, _] =>
if (lastPosition.cursor >= 0 && lastPosition.cursor < input.length) {
val c = input(lastPosition.cursor)
if (c >= 0x100 || c < 0x20 || c == '`') {
if (c >= 0x100 || (c < 0x20 && c != 13 && c != 10 && c != 9) || c == '`') {
log.error("Invalid character %s".format(getCharacterNameSafe(c)), Some(lastPosition))
Confusables.map.get(c) match {
case Some(ascii) =>