enter/upload content or retrieve it from an IETF mailarch archive through integrated searching support. Support for partial completion. - Legacy-Id: 11360
12 lines
258 B
Python
12 lines
258 B
Python
def skip_prefix(text, prefix):
|
|
if text.startswith(prefix):
|
|
return text[len(prefix):]
|
|
else:
|
|
return text
|
|
|
|
def skip_suffix(text, prefix):
|
|
if text.endswith(prefix):
|
|
return text[:-len(prefix)]
|
|
else:
|
|
return text
|