Skip to content

Conversation

@samuelveigarangel
Copy link
Contributor

O que esse PR faz?

Adiciona validação e extração de URLs válidas em URIPipe.

Onde a revisão poderia começar?

pelos commits

Como este poderia ser testado manualmente?

python python3 -m unittest article_meta.tests.XMLCitationTests.test_xml_citation_with_broken_url_pipe

Algum cenário de contexto que queira dar?

N/A

Screenshots

N/A

Quais são tickets relevantes?

#293

Referências

N/A

@classmethod
def extract_url(cls, text):
# Regex para capturar URLs válidas
pattern = r'https?://(?:www\.)?[^\s/]+(?:\.[a-z]{2,})(/[^\s]*)?'
Copy link
Member

Choose a reason for hiding this comment

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

@samuelveigarangel isso obriga https ?

@robertatakenaka robertatakenaka merged commit da844a2 into scieloorg:master Jan 6, 2025
2 checks 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