yeack, better not break other notecards HG; improve TestNotecardAsset()

This commit is contained in:
UbitUmarov
2020-02-07 22:39:36 +00:00
parent c245ce3c25
commit 43fea6530f
4 changed files with 150 additions and 24 deletions

View File

@@ -29,7 +29,6 @@ using OpenMetaverse;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text.RegularExpressions;
namespace OpenSim.Framework
{
@@ -874,7 +873,15 @@ namespace OpenSim.Framework
--count;
}
if(ids.Count == 0)
indx = note.IndexOf("Text length",indx);
if(indx > 0)
{
indx += 14;
List<UUID> textIDs = Util.GetUUIDsOnString(ref note, indx);
if(textIDs.Count > 0)
ids.AddRange(textIDs);
}
if (ids.Count == 0)
return null;
return ids;
}