forked from kubapok/kleister-nda-clone
Small fix in date extraction rule
This commit is contained in:
parent
d8f83ce1f2
commit
0c4ba98fbb
2
main.py
2
main.py
@ -90,7 +90,7 @@ def get_date(text: str):
|
|||||||
return res
|
return res
|
||||||
|
|
||||||
res = re.search(
|
res = re.search(
|
||||||
r"([j|J]anuary|[f|F]ebruary|[m|M]arch|[A|a]pril|[M|m]ay|[J|j]une|[J|j]uly|[A|a]ugust|[S|s]eptember|[O|o]ctober|[n|N]ovember|[d|D]ecember)[,\s|\s]+(0[1-9]|[1-2][0-9]|3[0-1])[,\s|\s|,]+(19[0-9][0-9]|20[0-9][0-9])", text)
|
r"([j|J]anuary|[f|F]ebruary|[m|M]arch|[A|a]pril|[M|m]ay|[J|j]une|[J|j]uly|[A|a]ugust|[S|s]eptember|[O|o]ctober|[n|N]ovember|[d|D]ecember),?\s*(0[1-9]|[1-2][0-9]|3[0-1]),?\s*(19[0-9][0-9]|20[0-9][0-9])", text)
|
||||||
|
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@
|
|||||||
jurisdiction=Wisconsin
|
jurisdiction=Wisconsin
|
||||||
jurisdiction=Washington
|
jurisdiction=Washington
|
||||||
effective_date=2006-04-13 party=Burlington_Coat_Factory_Holdings_Inc.
|
effective_date=2006-04-13 party=Burlington_Coat_Factory_Holdings_Inc.
|
||||||
effective_date=2015-05-31 jurisdiction=California
|
effective_date=2014-07-24 jurisdiction=California
|
||||||
|
|
||||||
effective_date=2013-12-20 jurisdiction=Delaware
|
effective_date=2013-12-20 jurisdiction=Delaware
|
||||||
jurisdiction=Massachusetts
|
jurisdiction=Massachusetts
|
||||||
|
Can't render this file because it has a wrong number of fields in line 5.
|
Loading…
Reference in New Issue
Block a user