Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 4b501a8

Browse files
committed
Extensions are now displayed using new API in project tree
1 parent b39175c commit 4b501a8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/utils/ViewUtils.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
define(function (require, exports, module) {
2929
"use strict";
3030

31-
var _ = require("thirdparty/lodash");
31+
var _ = require("thirdparty/lodash"),
32+
FileUtils = require("file/FileUtils");
3233

3334
var SCROLL_SHADOW_HEIGHT = 5;
3435

@@ -393,7 +394,8 @@ define(function (require, exports, module) {
393394
*/
394395
function getFileEntryDisplay(entry) {
395396
var name = entry.name,
396-
i = name.lastIndexOf(".");
397+
ext = FileUtils.getSmartFileExtension(name),
398+
i = name.lastIndexOf("." + ext);
397399

398400
if (i >= 0) {
399401
// Escape all HTML-sensitive characters in filename.

0 commit comments

Comments
 (0)