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

Correctly selects filename when known extension with a dot inside is used #7242

Merged
merged 4 commits into from
Mar 24, 2014
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Extensions are now displayed using new API in project tree
  • Loading branch information
zaggino committed Mar 24, 2014
commit 4b501a8d35e85e66fe01e70ebbcaa7dde8de3d0c
6 changes: 4 additions & 2 deletions src/utils/ViewUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
define(function (require, exports, module) {
"use strict";

var _ = require("thirdparty/lodash");
var _ = require("thirdparty/lodash"),
FileUtils = require("file/FileUtils");

var SCROLL_SHADOW_HEIGHT = 5;

Expand Down Expand Up @@ -393,7 +394,8 @@ define(function (require, exports, module) {
*/
function getFileEntryDisplay(entry) {
var name = entry.name,
i = name.lastIndexOf(".");
ext = FileUtils.getSmartFileExtension(name),
i = name.lastIndexOf("." + ext);

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