date-extractor icon indicating copy to clipboard operation
date-extractor copied to clipboard

2015 is interpreting incorrectly

Open shivanand3939 opened this issue 2 years ago • 0 comments

As of now, 2015 is interpreting as Yr: 20, Month: 1, Day: 5

But it should be interpreted as Year 2015.....

Changing

p["date"] = ( "(?P" + "|".join( [p["iso"] , p["mdy"], p["dmy"], p["ymd"], p["my"] , p["y"]] ) + ")" )

to

p["date"] = ( "(?P" + "|".join( [p["iso"] , p["y"], p["mdy"], p["dmy"], p["ymd"], p["my"] ] ) + ")" )

i.e putting p["y"] at the start is solving this... pls share your thoughts

shivanand3939 avatar Dec 04 '21 11:12 shivanand3939