From 309dc681273b42e1f4152f220479889218f59af9 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Sat, 18 May 2019 00:45:24 -0700 Subject: [PATCH] Use different escaping replacement --- lexipython/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexipython/utils.py b/lexipython/utils.py index 859e9a0..f890721 100644 --- a/lexipython/utils.py +++ b/lexipython/utils.py @@ -19,7 +19,7 @@ def titleescape(s): """ s = s.strip() s = re.sub(r"\s+", '_', s) # Replace whitespace with _ - s = re.sub(r"~", '_', s) # parse.quote doesn't catch ~ + s = re.sub(r"~", '-', s) # parse.quote doesn't catch ~ s = parse.quote(s) # Encode all other characters s = re.sub(r"%", "", s) # Strip encoding %s s = s[:64] # Limit to 64 characters