File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
- "use strict" ;
2
1
var utils = require ( '../utils' ) ;
3
2
var chrono = require ( 'chrono-node' ) ;
4
3
var EntityRecognizer = ( function ( ) {
@@ -35,7 +34,7 @@ var EntityRecognizer = (function () {
35
34
var time ;
36
35
entities . forEach ( function ( entity ) {
37
36
if ( entity . resolution ) {
38
- switch ( entity . resolution . resolution_type ) {
37
+ switch ( entity . resolution . resolution_type || entity . type ) {
39
38
case 'builtin.datetime.date' :
40
39
case 'builtin.datetime.time' :
41
40
var parts = ( entity . resolution . date || entity . resolution . time ) . split ( 'T' ) ;
@@ -198,5 +197,5 @@ var EntityRecognizer = (function () {
198
197
EntityRecognizer . noExp = / ^ ( 0 | n | n o | n o p e | n o t | f a l s e ) \z / i;
199
198
EntityRecognizer . numberExp = / [ + - ] ? (?: \d + \. ? \d * | \d * \. ? \d + ) / ;
200
199
return EntityRecognizer ;
201
- } ( ) ) ;
200
+ } ) ( ) ;
202
201
exports . EntityRecognizer = EntityRecognizer ;
Original file line number Diff line number Diff line change 2
2
"name" : " botbuilder" ,
3
3
"author" : " Microsoft Corp." ,
4
4
"description" : " Bot Builder is a dialog system for building rich bots on virtually any platform." ,
5
- "version" : " 0.6.3 " ,
5
+ "version" : " 0.6.4 " ,
6
6
"license" : " MIT" ,
7
7
"keywords" : [
8
8
" bots" ,
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ export class EntityRecognizer {
101
101
var time : string ;
102
102
entities . forEach ( ( entity : ILuisDateTimeEntity ) => {
103
103
if ( entity . resolution ) {
104
- switch ( entity . resolution . resolution_type ) {
104
+ switch ( entity . resolution . resolution_type || entity . type ) {
105
105
case 'builtin.datetime.date' :
106
106
case 'builtin.datetime.time' :
107
107
var parts = ( entity . resolution . date || entity . resolution . time ) . split ( 'T' ) ;
You can’t perform that action at this time.
0 commit comments