Skip to content

Conversation

@juanjemdIos
Copy link
Contributor

No description provided.

@dgarijo
Copy link
Collaborator

dgarijo commented Dec 17, 2025

Do one issue at a time, please. This does not address #862

@dgarijo
Copy link
Collaborator

dgarijo commented Dec 17, 2025

Create a new test for the empty repository please

# needed to cleanup bibtext files.
REGEXP_BIBTEX = r'\@[a-zA-Z]+\{[.\n\S\s]+?[author|title][.\n\S\s]+?[author|title][.\n\S\s]+?\n\}'
# REGEXP_BIBTEX = r'\@[a-zA-Z]+\{[.\n\S\s]+?[author|title][.\n\S\s]+?[author|title][.\n\S\s]+?\n\}'
REGEXP_BIBTEX = r'@[a-zA-Z]+\{[\s\S]*?(author|title)[\s\S]*?(author|title)[\s\S]*?\}'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you have author or title and then title or author? This is a little ambiguous.This regex could be potentially dangerous. Replace it with this one please:

@[a-zA-Z]+\{
(?=[\s\S]*\bauthor\b)
(?=[\s\S]*\btitle\b)
[\s\S]*?
\}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(and double check it)

@dgarijo dgarijo merged commit b3568ac into KnowledgeCaptureAndDiscovery:dev Dec 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants