regex is overkill for this, and performance is quite bad Fixes: b131c74ee3 ("Add prefix and suffix string trimming functions") Signed-off-by: William Casarin <jb55@jb55.com>
b131c74ee3