diff --git a/Toolbox.ts b/Toolbox.ts
index efd35ebe8b0ae21efb7f840e53dab9917ec25e74..02e52f826f581331bf05d1a7a7755e9b9465b693 100644
--- a/Toolbox.ts
+++ b/Toolbox.ts
@@ -16,6 +16,10 @@ class Toolbox {
         return str === 'true' || str === '1';
     }
 
+    public urlToPath(url: string): string {
+        return url.replace(/^([a-z]{3,5}:\/{2})?[a-z.@]+(:[0-9]{1,5})?.(.*)/, '$3').replace('.git', '');
+    }
+
     public randomString(length: number) {
         let result = '';
         let characters = 'abcdefghjklmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789';