We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d3fd6e commit 90a204cCopy full SHA for 90a204c
cli.py
@@ -168,10 +168,12 @@ def classify(scores, threshold):
168
## Returns a list of bibtex citations
169
def extract_bibtex(readme_text):
170
print("Extracting bibtex citation from readme")
171
- regex = r'\@[a-zA-z]+\{[.\n\S\s]+?author[.\n\S\s]+?title[.\n\S\s]+?\n\}'
+ regex = r'\@[a-zA-z]+\{[.\n\S\s]+?[author|title][.\n\S\s]+?[author|title][.\n\S\s]+?\n\}'
172
excerpts = readme_text
173
citations = re.findall(regex,excerpts)
174
print("Extracting bibtex citation from readme completed.")
175
+ print(citations)
176
+ print(len(citations))
177
return citations
178
179
## Function takes metadata, readme text predictions, bibtex citations and path to the output file
0 commit comments