datatracker/ietf/utils/text.py
Ole Laursen 7cbe36fb62 Implement completing a review with tests. One can currently
enter/upload content or retrieve it from an IETF mailarch archive
through integrated searching support. Support for partial completion.
 - Legacy-Id: 11360
2016-06-14 11:28:53 +00:00

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