the-superpirate dd23846059 - [nexus] Refactoring
- [nexus] Switch bot
  - [bot] Added extra receivers functionality

GitOrigin-RevId: 68fc32d3e79ff411758f54f435fe8680fc42dead
2022-03-28 17:42:18 +03:00

14 lines
258 B
Python

from urllib.parse import unquote
def canonize_doi(doi):
return (
unquote(doi.lower())
.replace('\\n', '\n')
.replace('\n', '')
.replace('\\', '')
.strip('\'"')
.replace('\x00', '')
.strip()
)