datatracker/ietf/utils/draft_search.py
Henrik Levkowetz 726fcbf27d Removed all __future__ imports.
- Legacy-Id: 17391
2020-03-05 23:53:42 +00:00

12 lines
256 B
Python

# Copyright The IETF Trust 2007-2020, All Rights Reserved
# -*- coding: utf-8 -*-
import re
def normalize_draftname(string):
string = string.strip()
string = re.sub(r"\.txt$","",string)
string = re.sub(r"-\d\d$","",string)
return string