Skip to content

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

@dpriskorn

Description

@dpriskorn
# 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions