From 572c2e7218a21a6fa711d9b654a8f74163a77e69 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Tue, 15 Sep 2020 13:37:38 +0200 Subject: Added more path tests --- src/hooks.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/hooks.py') diff --git a/src/hooks.py b/src/hooks.py index e2fbcf8..f14c8f7 100644 --- a/src/hooks.py +++ b/src/hooks.py @@ -6,7 +6,7 @@ # By: charles +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/09/11 16:10:20 by charles #+# #+# # -# Updated: 2020/09/13 09:50:21 by charles ### ########.fr # +# Updated: 2020/09/15 11:44:14 by charles ### ########.fr # # # # ############################################################################ # @@ -43,3 +43,8 @@ def export_singleton(output): '\n'.join([line for line in output.split('\n') if re.match("^{}.+=\".*\"$".format(prefix), line) is not None]) ) + + +def replace_double_slash(output): + """Replace occurence of double slash by one""" + return output.replace("//", "/") -- cgit