Skip to content

Commit 877eec6

Browse files
committed
shutup
1 parent c6c5230 commit 877eec6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/SplashRead.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ bool SplashRead::loadFile()
5353
if (line[i] == '\0') continue;
5454
if (line[i] < ' ' || line[i] > '~')
5555
{
56-
log::error("Non-alphanumeric character detected at col {} of line {}", i + 1, lineNum);
57-
return false;
56+
if (line[i] != '\n' && line[i] != '\r')
57+
{
58+
log::error("Non-alphanumeric character detected at col {} of line {}", i + 1, lineNum);
59+
return false;
60+
}
5861
}
5962
}
6063

0 commit comments

Comments
 (0)