diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-15 13:37:38 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-15 13:37:38 +0200 |
| commit | 572c2e7218a21a6fa711d9b654a8f74163a77e69 (patch) | |
| tree | cb54bc62513bf073b8c3de7b4cea3388d0739907 /src/hooks.py | |
| parent | fec33d1621e01e12a7dc64630477318213218ae7 (diff) | |
| download | minishell_test-572c2e7218a21a6fa711d9b654a8f74163a77e69.tar.gz minishell_test-572c2e7218a21a6fa711d9b654a8f74163a77e69.tar.bz2 minishell_test-572c2e7218a21a6fa711d9b654a8f74163a77e69.zip | |
Added more path tests
Diffstat (limited to 'src/hooks.py')
| -rw-r--r-- | src/hooks.py | 7 |
1 files changed, 6 insertions, 1 deletions
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 <me@cacharle.xyz> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # 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("//", "/") |
