mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Merge commit 'ffdf59a57c936189e3b161b79b4a76a3a9b260bb' into bigmerge
This commit is contained in:
@@ -146,9 +146,9 @@ namespace OpenSim.Framework.Tests
|
||||
Assert.IsFalse(Util.isUUID("FOOBAR67-89ab-Cdef-0123-456789AbCdEf"),
|
||||
"UUIDs with non-hex characters are recognized as correct UUIDs.");
|
||||
Assert.IsFalse(Util.isUUID("01234567"),
|
||||
"Too short UUIDs are regognized as correct UUIDs.");
|
||||
"Too short UUIDs are recognized as correct UUIDs.");
|
||||
Assert.IsFalse(Util.isUUID("01234567-89ab-Cdef-0123-456789AbCdEf0"),
|
||||
"Too long UUIDs are regognized as correct UUIDs.");
|
||||
"Too long UUIDs are recognized as correct UUIDs.");
|
||||
Assert.IsFalse(Util.isUUID("01234567-89ab-Cdef-0123+456789AbCdEf"),
|
||||
"UUIDs with wrong format are recognized as correct UUIDs.");
|
||||
}
|
||||
|
||||
@@ -46,7 +46,6 @@ using System.Threading;
|
||||
using log4net;
|
||||
using Nini.Config;
|
||||
using Nwc.XmlRpc;
|
||||
// using BclExtras;
|
||||
using OpenMetaverse;
|
||||
using OpenMetaverse.StructuredData;
|
||||
using Amib.Threading;
|
||||
@@ -91,8 +90,10 @@ namespace OpenSim.Framework
|
||||
private static readonly DateTime unixEpoch =
|
||||
DateTime.ParseExact("1970-01-01 00:00:00 +0", "yyyy-MM-dd hh:mm:ss z", DateTimeFormatInfo.InvariantInfo).ToUniversalTime();
|
||||
|
||||
public static readonly Regex UUIDPattern
|
||||
= new Regex("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$");
|
||||
private static readonly string rawUUIDPattern
|
||||
= "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}";
|
||||
public static readonly Regex PermissiveUUIDPattern = new Regex(rawUUIDPattern);
|
||||
public static readonly Regex UUIDPattern = new Regex(string.Format("^{0}$", rawUUIDPattern));
|
||||
|
||||
public static FireAndForgetMethod DefaultFireAndForgetMethod = FireAndForgetMethod.SmartThreadPool;
|
||||
public static FireAndForgetMethod FireAndForgetMethod = DefaultFireAndForgetMethod;
|
||||
|
||||
Reference in New Issue
Block a user