do not rename kr_theme to kr during the build

This commit is contained in:
nightwing 2014-07-22 16:32:40 +04:00
commit 0eaae8712e
2 changed files with 2 additions and 6 deletions

View file

@ -359,7 +359,7 @@ function buildAce(options) {
buildSubmodule(options, {
projectType: "theme",
require: ["ace/theme/" + name]
}, "theme-" + name.replace("_theme", ""));
}, "theme-" + name);
});
// keybindings
["vim", "emacs"].forEach(function(name) {

View file

@ -80,11 +80,7 @@ exports.moduleUrl = function(name, component) {
// todo make this configurable or get rid of '-'
var sep = component == "snippets" ? "/" : "-";
var base = parts[parts.length - 1];
if (sep == "-") {
var re = new RegExp("^" + component + "[\\-_]|[\\-_]" + component + "$", "g");
base = base.replace(re, "");
}
var base = parts[parts.length - 1];
if ((!base || base == component) && parts.length > 1)
base = parts[parts.length - 2];