Skip to content

Commit

Permalink
Fixed adobe#2551
Browse files Browse the repository at this point in the history
  • Loading branch information
WebsiteDeveloper committed Feb 13, 2013
1 parent 171ac93 commit 0aa7d98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/project/ProjectManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1296,8 +1296,8 @@ define(function (require, exports, module) {
}

var oldName = selected.data("entry").fullPath;
var oldNameRegex = new RegExp(StringUtils.regexEscape(data.rslt.old_name) + "$");
var newName = oldName.replace(oldNameRegex, data.rslt.new_name);
var oldNameRegex = new RegExp(StringUtils.regexEscape(data.rslt.old_name + "/") + "$");
var newName = oldName.replace(oldNameRegex, data.rslt.new_name) + "/";

renameItem(oldName, newName, isFolder)
.done(function () {
Expand Down

1 comment on commit 0aa7d98

@DennisKehrig
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This merely shifts the problem to files instead of folders.

Please sign in to comment.