Skip to content

Commit

Permalink
[* DateTimeV2] Make TimeZoneParser configurable (#2832)
Browse files Browse the repository at this point in the history
  • Loading branch information
pete1854 authored Jan 11, 2022
1 parent 8e93442 commit f4744ce
Show file tree
Hide file tree
Showing 35 changed files with 9,343 additions and 28 deletions.
1,490 changes: 1,490 additions & 0 deletions .NET/Microsoft.Recognizers.Definitions.Common/Arabic/TimeZoneDefinitions.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<#@ template debug="true" hostspecific="true" language="C#" #>
<#
this.DataFilename = @"Patterns\Arabic\Arabic-TimeZone.yaml";
this.Language = "Arabic";
this.ClassName = "TimeZoneDefinitions";
#>
<#@ include file="..\CommonDefinitions.ttinclude"#>
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ public static class TimeZoneDefinitions
{
@"Afghanistan Standard Time"
};
public const string BaseTimeZoneSuffixRegex = @"((\s+|-)(friendly|compatible))?(\s+|-)time(zone)?";
public const string LocationTimeSuffixRegex = @"((\s+|-)(tijdzone|tijd|timezone|time)\b)";
public static readonly string TimeZoneEndRegex = $@"({BaseTimeZoneSuffixRegex})$";
public static readonly IList<string> AmbiguousTimezoneList = new List<string>
{
@"bit",
Expand Down
Loading

0 comments on commit f4744ce

Please sign in to comment.