Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make spq_set() replace prefixes #214

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: make spq_set() replace prefixes #214

wants to merge 1 commit into from

Conversation

maelle
Copy link
Collaborator

@maelle maelle commented Dec 21, 2023

Fix #209

@maelle maelle requested a review from lvaudor December 21, 2023 14:50
)
pattern = str_replace(
prefixes[["url"]][prefixes[["name"]] == prefix],
"http:", "https?:"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@lvaudor c'est pour que ça marche avec https et http, is that ok?

Copy link
Owner

Choose a reason for hiding this comment

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

oui parfait, c'est bien que ça fonctionne avec les deux


replacement = sprintf("%s:", prefix)

if (is.data.frame(results)) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not my proudest moment

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.

spq_set should work with URIs (probably)
2 participants