We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ffe67f commit fa749feCopy full SHA for fa749fe
src/somef/utils/constants.py
@@ -25,8 +25,8 @@
25
REGEXP_COLAB = "https://colab.research.google.com/drive"
26
# needed to cleanup bibtext files.
27
# REGEXP_BIBTEX = r'\@[a-zA-Z]+\{[.\n\S\s]+?[author|title][.\n\S\s]+?[author|title][.\n\S\s]+?\n\}'
28
-REGEXP_BIBTEX = r'@[a-zA-Z]+\{[\s\S]*?(?:author|title)[\s\S]*?(?:author|title)[\s\S]*?\}'
29
-
+# REGEXP_BIBTEX = r'@[a-zA-Z]+\{[\s\S]*?(?:author|title)[\s\S]*?(?:author|title)[\s\S]*?\}'
+REGEXP_BIBTEX = r'@[a-zA-Z]+\{(?=[\s\S]*\bauthor\b)(?=[\s\S]*\btitle\b)[\s\S]*?\}'
30
REGEXP_DOI = r'\[\!\[DOI\]([^\]]+)\]\(([^)]+)\)'
31
REGEXP_LINKS = r"\[(.*?)?\]\(([^)]+)\)"
32
REGEXP_IMAGES = r"!\[(.*?)?\]\((.*?)?\)"
0 commit comments