File tree 4 files changed +43
-3
lines changed
.NET/Microsoft.Recognizers.Definitions
JavaScript/packages/recognizers-sequence/src/resources
4 files changed +43
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public static class BaseIp
28
28
public static readonly string Ipv6EllipsisRegex6 = $@ "(({ BasicIpv6Element } :){{5}}((:{ BasicIpv6Element } ){{1,2}}))";
29
29
public static readonly string Ipv6EllipsisRegex7 = $@ "(({ BasicIpv6Element } :){{6}}((:{ BasicIpv6Element } ){{1}}))";
30
30
public static readonly string Ipv6EllipsisRegex8 = $@ "(({ BasicIpv6Element } :){{7}}(:))";
31
- public static readonly string Ipv6EllipsisRegexOther = $@ "\B::\B|\B:(:{ BasicIpv6Element } ){{0 ,7}}\b|\b({ BasicIpv6Element } :){{0 ,7}}:\B";
31
+ public static readonly string Ipv6EllipsisRegexOther = $@ "\B::\B|\B:(:{ BasicIpv6Element } ){{1 ,7}}\b|\b({ BasicIpv6Element } :){{1 ,7}}:\B";
32
32
public static readonly string MergedIpv6Regex = $@ "({ BasicIpv6Regex } |{ Ipv6EllipsisRegex1 } |{ Ipv6EllipsisRegex2 } |{ Ipv6EllipsisRegex3 } |{ Ipv6EllipsisRegex4 } |{ Ipv6EllipsisRegex5 } |{ Ipv6EllipsisRegex6 } |{ Ipv6EllipsisRegex7 } |{ Ipv6EllipsisRegex8 } )";
33
33
public static readonly string Ipv6Regex = $@ "(\b{ MergedIpv6Regex } \b)|({ Ipv6EllipsisRegexOther } )";
34
34
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export namespace BaseIp {
18
18
export const Ipv6EllipsisRegex6 = `((${ BasicIpv6Element } :){5}((:${ BasicIpv6Element } ){1,2}))` ;
19
19
export const Ipv6EllipsisRegex7 = `((${ BasicIpv6Element } :){6}((:${ BasicIpv6Element } ){1}))` ;
20
20
export const Ipv6EllipsisRegex8 = `((${ BasicIpv6Element } :){7}(:))` ;
21
- export const Ipv6EllipsisRegexOther = `\\B::\\B|\\B:(:${ BasicIpv6Element } ){0 ,7}\\b|\\b(${ BasicIpv6Element } :){0 ,7}:\\B` ;
21
+ export const Ipv6EllipsisRegexOther = `\\B::\\B|\\B:(:${ BasicIpv6Element } ){1 ,7}\\b|\\b(${ BasicIpv6Element } :){1 ,7}:\\B` ;
22
22
export const MergedIpv6Regex = `(${ BasicIpv6Regex } |${ Ipv6EllipsisRegex1 } |${ Ipv6EllipsisRegex2 } |${ Ipv6EllipsisRegex3 } |${ Ipv6EllipsisRegex4 } |${ Ipv6EllipsisRegex5 } |${ Ipv6EllipsisRegex6 } |${ Ipv6EllipsisRegex7 } |${ Ipv6EllipsisRegex8 } )` ;
23
23
export const Ipv6Regex = `(\\b${ MergedIpv6Regex } \\b)|(${ Ipv6EllipsisRegexOther } )` ;
24
24
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Ipv6EllipsisRegex8: !nestedRegex
31
31
def : (({BasicIpv6Element}:){7}(:))
32
32
references : [BasicIpv6Element]
33
33
Ipv6EllipsisRegexOther : !nestedRegex
34
- def : \B::\B|\B:(:{BasicIpv6Element}){0 ,7}\b|\b({BasicIpv6Element}:){0 ,7}:\B
34
+ def : \B::\B|\B:(:{BasicIpv6Element}){1 ,7}\b|\b({BasicIpv6Element}:){1 ,7}:\B
35
35
references : [BasicIpv6Element]
36
36
MergedIpv6Regex : !nestedRegex
37
37
def : ({BasicIpv6Regex}|{Ipv6EllipsisRegex1}|{Ipv6EllipsisRegex2}|{Ipv6EllipsisRegex3}|{Ipv6EllipsisRegex4}|{Ipv6EllipsisRegex5}|{Ipv6EllipsisRegex6}|{Ipv6EllipsisRegex7}|{Ipv6EllipsisRegex8})
Original file line number Diff line number Diff line change 323
323
}
324
324
]
325
325
},
326
+ {
327
+ "Input" : " the train arrives at 10:00" ,
328
+ "NotSupportedByDesign" : " python" ,
329
+ "Results" : []
330
+ },
326
331
{
327
332
"Input" : " wrong IPV6 address FE06::1::2" ,
328
333
"NotSupportedByDesign" : " python" ,
329
334
"Results" : []
330
335
},
336
+ {
337
+ "Input" : " wrong IPV6 address :" ,
338
+ "NotSupportedByDesign" : " python" ,
339
+ "Results" : []
340
+ },
341
+ {
342
+ "Input" : " I say:" ,
343
+ "NotSupportedByDesign" : " python" ,
344
+ "Results" : []
345
+ },
346
+ {
347
+ "Input" : " I said :" ,
348
+ "NotSupportedByDesign" : " python" ,
349
+ "Results" : []
350
+ },
351
+ {
352
+ "Input" : " lync:" ,
353
+ "NotSupportedByDesign" : " python" ,
354
+ "Results" : []
355
+ },
356
+ {
357
+ "Input" : " lync: :" ,
358
+ "NotSupportedByDesign" : " python" ,
359
+ "Results" : []
360
+ },
361
+ {
362
+ "Input" : " :as you say" ,
363
+ "NotSupportedByDesign" : " python" ,
364
+ "Results" : []
365
+ },
366
+ {
367
+ "Input" : " : as you say" ,
368
+ "NotSupportedByDesign" : " python" ,
369
+ "Results" : []
370
+ },
331
371
{
332
372
"Input" : " wrong IPV6 address 12::44:f:45::1" ,
333
373
"NotSupportedByDesign" : " python" ,
You can’t perform that action at this time.
0 commit comments