mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
* Fix a console issue where pressing return on some operating systems cause the console to crash and complain about 0 regex matches.
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user