Просмотр исходного кода

Regex now matches new folder nomenclature.

Paulo Reis 10 лет назад
Родитель
Сommit
5ad0c06770

+ 1 - 1
services/web/public/coffee/ide/pdf/controllers/PdfController.coffee

@@ -237,7 +237,7 @@ define [
 			return null
 
 		normalizeFilePath = (path) ->
-			path = path.replace(/^(.*)\/compiles\/[0-9a-f]{24}\/(\.\/)?/, "")
+			path = path.replace(/^(.*)\/compiles\/[0-9a-f]{24}-[0-9a-f]{24}\/(\.\/)?/, "")
 			path = path.replace(/^\/compile\//, "")
 
 			rootDocDirname = ide.fileTreeManager.getRootDocDirname()