Commit 0db3dc7
apply: remove epoch date from regex
We check the date of epoch timestamp candidates already with
starts_with(). Move beyond that part using skip_prefix() instead of
checking it again using a regular expression. Also group the minutes
part, so that we can access them using a substring match instead of
using a magic number.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent e490501 commit 0db3dc7
1 file changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
812 | 812 | | |
813 | 813 | | |
814 | 814 | | |
815 | | - | |
816 | | - | |
817 | | - | |
| 815 | + | |
818 | 816 | | |
819 | 817 | | |
820 | 818 | | |
| |||
834 | 832 | | |
835 | 833 | | |
836 | 834 | | |
837 | | - | |
| 835 | + | |
838 | 836 | | |
839 | | - | |
| 837 | + | |
840 | 838 | | |
841 | 839 | | |
842 | 840 | | |
| |||
858 | 856 | | |
859 | 857 | | |
860 | 858 | | |
861 | | - | |
862 | | - | |
| 859 | + | |
| 860 | + | |
863 | 861 | | |
864 | 862 | | |
865 | 863 | | |
| |||
0 commit comments