* Fix a console issue where pressing return on some operating systems cause the console to crash and complain about 0 regex matches.
parent
4db839c3b8
commit
d194f21a5d
|
@ -376,6 +376,10 @@ namespace OpenSim.Framework.Console
|
|||
char[] delims = {' ', '"'};
|
||||
MatchCollection matches = Extractor.Matches(cmdline);
|
||||
// Get matches
|
||||
|
||||
if (matches.Count == 0)
|
||||
return;
|
||||
|
||||
string cmd = matches[0].Value.Trim(delims);
|
||||
string[] cmdparams = new string[matches.Count - 1];
|
||||
|
||||
|
|
Loading…
Reference in New Issue