Skip to content

Commit

Permalink
Merge pull request #1 from Microsoft/master
Browse files Browse the repository at this point in the history
Merging changes back to master.
  • Loading branch information
Ryan Dawkins authored Feb 16, 2018
2 parents 1ca112a + e96813d commit fce5c60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion samples/AlarmBot-Cards/DateTimeRecognizerExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static IList<DateTime> GetDateTimes(this BotContext context)
return results.Where(result =>
{
var subType = result.TypeName.Split('.').Last();
return subType.Contains("time") && !subType.Contains("range");
return (subType.Contains("date") || subType.Contains("time")) && !subType.Contains("range");
})
.Select(result =>
{
Expand Down
2 changes: 1 addition & 1 deletion samples/AlarmBot/DateTimeRecognizerExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static IList<DateTime> GetDateTimes(this BotContext context)
return results.Where(result =>
{
var subType = result.TypeName.Split('.').Last();
return subType.Contains("time") && !subType.Contains("range");
return (subType.Contains("date") || subType.Contains("time")) && !subType.Contains("range");
})
.Select(result =>
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Microsoft.Bot.Builder.Tests/ContextExtensionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System;
using System.Threading.Tasks;
using Microsoft.Bot.Builder.Adapters;
using Microsoft.Bot.Builder.ContextExtensions;
using Microsoft.Bot.Builder;
using Microsoft.Bot.Schema;
using Microsoft.VisualStudio.TestTools.UnitTesting;

Expand Down

0 comments on commit fce5c60

Please sign in to comment.