Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ def create_bibtex_entry(data):
|
|
111 |
if year and 'year' not in data:
|
112 |
data['year'] = year
|
113 |
|
114 |
-
match_year = re.search(r'
|
115 |
|
116 |
if match_year:
|
117 |
data['year'] = match_year.group(1)
|
|
|
111 |
if year and 'year' not in data:
|
112 |
data['year'] = year
|
113 |
|
114 |
+
match_year = re.search(r'(\d{4})', data['year'])
|
115 |
|
116 |
if match_year:
|
117 |
data['year'] = match_year.group(1)
|