Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ def create_bibtex_entry(data):
|
|
89 |
match_year = re.search(r'\b(\d{4})\b', data['year'])
|
90 |
|
91 |
if match_year:
|
92 |
-
data['year'] =
|
93 |
year = data['year']
|
94 |
else:
|
95 |
data.pop('year', '')
|
|
|
89 |
match_year = re.search(r'\b(\d{4})\b', data['year'])
|
90 |
|
91 |
if match_year:
|
92 |
+
data['year'] = match_year.group(1)
|
93 |
year = data['year']
|
94 |
else:
|
95 |
data.pop('year', '')
|