Commit 2dd49c6
Improve regex generation for DateTime parser
If there are two adjacent integer definitions for date/time fields
in the picture string without any extra markup between them,
then the generated regex must precisely define the number of digits in the first field.
Signed-off-by: Andrew Coleman <andrew_coleman@uk.ibm.com>1 parent 2ed0395 commit 2dd49c6
File tree
2 files changed
+18
-13
lines changed- src
- test/test-suite/groups/function-tomillis
2 files changed
+18
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
615 | | - | |
| 615 | + | |
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
628 | 633 | | |
629 | 634 | | |
630 | 635 | | |
| |||
990 | 995 | | |
991 | 996 | | |
992 | 997 | | |
993 | | - | |
994 | 998 | | |
995 | 999 | | |
996 | 1000 | | |
| |||
1035 | 1039 | | |
1036 | 1040 | | |
1037 | 1041 | | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | 1042 | | |
1049 | 1043 | | |
1050 | 1044 | | |
| |||
1066 | 1060 | | |
1067 | 1061 | | |
1068 | 1062 | | |
1069 | | - | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
1070 | 1069 | | |
1071 | 1070 | | |
1072 | 1071 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments