internetarchive / iare

An interactive IARI JSON viewer
GNU Affero General Public License v3.0
5 stars 4 forks source link

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 1 year ago

dpriskorn commented 1 year ago
# 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