File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Uno.UWP/Globalization/DateTimeFormatting Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -804,7 +804,7 @@ string ConstructPattern(string str)
804804
805805 var builder = new StringBuilder ( ) ;
806806
807- foreach ( var part in IsWithinSingleQuotesRegex ( ) . Split ( str ) )
807+ foreach ( var part in StringLiteralRegex ( ) . Split ( str ) )
808808 {
809809 // skip empty block
810810 if ( part . Length == 0 )
@@ -822,7 +822,7 @@ string ConstructPattern(string str)
822822 // for non-quoted parts, further segment them by grouping repeated character(s)
823823 else
824824 {
825- foreach ( var segment in DateTimeFormatPartsRegex ( ) . EnumerateMatches ( part ) )
825+ foreach ( var segment in RepeatedCharactersRegex ( ) . EnumerateMatches ( part ) )
826826 {
827827 AddToBuilder ( builder , part [ segment . Index ] , segment . Length ) ;
828828 }
@@ -834,8 +834,8 @@ string ConstructPattern(string str)
834834 }
835835
836836 [ GeneratedRegex ( @"('[^']+')" ) ]
837- private static partial Regex IsWithinSingleQuotesRegex ( ) ;
837+ private static partial Regex StringLiteralRegex ( ) ;
838838
839839 [ GeneratedRegex ( @"(.)(\1+)?" ) ]
840- private static partial Regex DateTimeFormatPartsRegex ( ) ;
840+ private static partial Regex RepeatedCharactersRegex ( ) ;
841841}
You can’t perform that action at this time.
0 commit comments