mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Make the user id portion of the path optional.
This commit is contained in:
parent
5ad0c06770
commit
36e09e3b0c
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ define [
|
||||||
return null
|
return null
|
||||||
|
|
||||||
normalizeFilePath = (path) ->
|
normalizeFilePath = (path) ->
|
||||||
path = path.replace(/^(.*)\/compiles\/[0-9a-f]{24}-[0-9a-f]{24}\/(\.\/)?/, "")
|
path = path.replace(/^(.*)\/compiles\/[0-9a-f]{24}(-[0-9a-f]{24})?\/(\.\/)?/, "")
|
||||||
path = path.replace(/^\/compile\//, "")
|
path = path.replace(/^\/compile\//, "")
|
||||||
|
|
||||||
rootDocDirname = ide.fileTreeManager.getRootDocDirname()
|
rootDocDirname = ide.fileTreeManager.getRootDocDirname()
|
||||||
|
|
Loading…
Reference in a new issue