mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
use some shared char arrays on string split
This commit is contained in:
@@ -247,7 +247,7 @@ namespace OpenSim.Region.CoreModules.Framework.Library
|
||||
|
||||
private string GetInventoryPathFromName(string name)
|
||||
{
|
||||
string[] parts = name.Split(new char[] { ' ' });
|
||||
string[] parts = name.Split();
|
||||
if (parts.Length == 3)
|
||||
{
|
||||
name = string.Empty;
|
||||
|
||||
@@ -117,7 +117,7 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
|
||||
// This is it! Let's ask the other world
|
||||
if (words[0].Contains("."))
|
||||
{
|
||||
string[] names = words[0].Split(new char[] { '.' });
|
||||
string[] names = words[0].Split(Util.SplitDotArray);
|
||||
if (names.Length >= 2)
|
||||
{
|
||||
string uriStr = "http://" + words[1];
|
||||
|
||||
Reference in New Issue
Block a user