From 30ae92e1489248c876018b9abeea3ea73892fe06 Mon Sep 17 00:00:00 2001
From: David Sehnal <david.sehnal@gmail.com>
Date: Fri, 9 Nov 2018 11:05:15 +0100
Subject: [PATCH] uuid tweak

---
 src/mol-util/uuid.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mol-util/uuid.ts b/src/mol-util/uuid.ts
index 983d88663..fd96f6e1e 100644
--- a/src/mol-util/uuid.ts
+++ b/src/mol-util/uuid.ts
@@ -16,7 +16,7 @@ namespace UUID {
             chars[i] = String.fromCharCode((d + Math.random()*0xff)%0xff | 0);
             d = Math.floor(d/0xff);
         }
-        return btoa(chars.join('')).substr(0, 22) as UUID;
+        return btoa(chars.join('')).replace(/\+/g, '-').replace(/\//g, '_').substr(0, 22) as UUID;
         // const uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
         //     const r = (d + Math.random()*16)%16 | 0;
         //     d = Math.floor(d/16);
-- 
GitLab