Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 7e9160b

Browse files
committed
Fix PCL build
1 parent 961d547 commit 7e9160b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.Text/Common/DateTimeSerializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static class DateTimeSerializer
4545
private static readonly int XsdTimeSeparatorIndex = XsdDateTimeFormat.IndexOf(XsdTimeSeparator);
4646
private const string XsdUtcSuffix = "Z";
4747
private static readonly char[] DateTimeSeperators = new[] { '-', '/' };
48-
private static readonly Regex UtcOffsetInfoRegex = new Regex("([+-](?:2[0-3]|[0-1][0-9]):[0-5][0-9])", RegexOptions.Compiled);
48+
private static readonly Regex UtcOffsetInfoRegex = new Regex("([+-](?:2[0-3]|[0-1][0-9]):[0-5][0-9])", PclExport.Instance.RegexOptions);
4949
public static Func<string, Exception, DateTime> OnParseErrorFn { get; set; }
5050

5151
/// <summary>

0 commit comments

Comments
 (0)