Skip to content

Commit 247da61

Browse files
committed
fix: update uriToString function to account for '|' characters in uri for cloud models
1 parent bbb7488 commit 247da61

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

server/controller/socket/global.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const Global = {
1010
// (Konrad) Since we cannot pass file path with "\" they were replaced with illegal pipe char "|".
1111
// (Konrad) RSN and A360 paths will have forward slashes instead of back slashes.
1212
const isRevitServer = uri.match(/rsn:/i)
13-
const isCloudModel = uri.match(/^(?!rsn).*:\/\//i)
13+
const isCloudModel = uri.match(/^(?!rsn).*:[\\|]{2}/i)
14+
1415
let rgx
1516
if (isRevitServer || isCloudModel) {
1617
rgx = uri.replace(/\|/g, '/').toLowerCase()

0 commit comments

Comments
 (0)