14 lines
330 B
Python
14 lines
330 B
Python
# Copyright The IETF Trust 2007-2019, All Rights Reserved
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
from __future__ import absolute_import, print_function, unicode_literals
|
|
|
|
import re
|
|
|
|
def normalize_draftname(string):
|
|
string = string.strip()
|
|
string = re.sub(r"\.txt$","",string)
|
|
string = re.sub(r"-\d\d$","",string)
|
|
return string
|