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

links: as a patron I want the frontend to try to fix URL typing errors before checking the URLs so I get more reliable output #69

Open
dpriskorn opened this issue Jun 5, 2023 · 0 comments
Labels
enhancement New feature or request url fixing

Comments

@dpriskorn
Copy link
Collaborator

# def __fix_doi_typing_errors__(self, string):
#     """This fixes common typing errors that we found"""
#     # From https://s3.documentcloud.org/documents/23782225/mwg-fdr-document-04-16-23-1.pdf page 298
#     if "https://doi.org:" in string:
#         self.urls_fixed.append("https://doi.org:")
#         string = string.replace("https://doi.org:", "https://doi.org/")
#     # From https://s3.documentcloud.org/documents/23782225/mwg-fdr-document-04-16-23-1.pdf page 298
#     if "https://doi.or/" in string:
#         self.urls_fixed.append("https://doi.or/")
#         string = string.replace("https://doi.or/", "https://doi.org/")
#     return string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request url fixing
Projects
Status: No status
Development

No branches or pull requests

1 participant