'Python DateFinder package weird quirk with word after date

I am confused by the python datefinder package not finding a date with a simple format. Here is the simple code that I have:

import datefinder

s = "29 November 2007 Last"

matches = datefinder.find_dates(s,index=True)
for m_date in matches:
    print(m_date)

This code doesn't return anything but if I remove or change the character L from the word "Last", the script returns the date correctly. I also tried with a lowercase "l" but it doesn't work either. For example, this works:

import datefinder

s = "29 November 2007 Past"

matches = datefinder.find_dates(s,index=True)
for m_date in matches:
    print(m_date)

Can anyone tell me if I'm doing something wrong? Is datefinder confusing the character "L" for another one thus messing up the date pattern? Thanks for your help!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source