Skip to content

Commit 8f25df1

Browse files
committed
fix mishandling of newline right after command name
1 parent 406ef72 commit 8f25df1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

SharpDenizenTools/ScriptAnalysis/ScriptChecker.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,7 @@ public void CheckSingleCommand(int line, int startChar, string commandText, Scri
789789
Warn(Warnings, line, "raw_object_notation", "This line appears to contain raw object notation. There is almost always a better way to write a line than using raw object notation. Consider the relevant object constructor tags.", start, end);
790790
}
791791
}
792+
commandText = commandText.Replace('\n', ' ');
792793
string[] parts = commandText.Split(' ', 2);
793794
string commandName = parts[0].ToLowerFast();
794795
int cmdLen = commandName.Length;

0 commit comments

Comments
 (0)