-Fixed casting dynamic JValue to JToken

This commit is contained in:
James Newton-King
2015-12-13 18:56:10 +13:00
parent 815b283e58
commit 4c256e7afd
4 changed files with 55 additions and 2 deletions
@@ -931,7 +931,9 @@ namespace Newtonsoft.Json.Utilities
// GUID has to have format 00000000-0000-0000-0000-000000000000
#if NET20 || NET35
if (s == null)
{
throw new ArgumentNullException("s");
}
Regex format = new Regex("^[A-Fa-f0-9]{8}-([A-Fa-f0-9]{4}-){3}[A-Fa-f0-9]{12}$");
Match match = format.Match(s);