do not rename kr_theme to kr during the build
This commit is contained in:
parent
f3d4147f6b
commit
0eaae8712e
2 changed files with 2 additions and 6 deletions
|
|
@ -359,7 +359,7 @@ function buildAce(options) {
|
||||||
buildSubmodule(options, {
|
buildSubmodule(options, {
|
||||||
projectType: "theme",
|
projectType: "theme",
|
||||||
require: ["ace/theme/" + name]
|
require: ["ace/theme/" + name]
|
||||||
}, "theme-" + name.replace("_theme", ""));
|
}, "theme-" + name);
|
||||||
});
|
});
|
||||||
// keybindings
|
// keybindings
|
||||||
["vim", "emacs"].forEach(function(name) {
|
["vim", "emacs"].forEach(function(name) {
|
||||||
|
|
|
||||||
|
|
@ -80,11 +80,7 @@ exports.moduleUrl = function(name, component) {
|
||||||
|
|
||||||
// todo make this configurable or get rid of '-'
|
// todo make this configurable or get rid of '-'
|
||||||
var sep = component == "snippets" ? "/" : "-";
|
var sep = component == "snippets" ? "/" : "-";
|
||||||
var base = parts[parts.length - 1];
|
var base = parts[parts.length - 1];
|
||||||
if (sep == "-") {
|
|
||||||
var re = new RegExp("^" + component + "[\\-_]|[\\-_]" + component + "$", "g");
|
|
||||||
base = base.replace(re, "");
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((!base || base == component) && parts.length > 1)
|
if ((!base || base == component) && parts.length > 1)
|
||||||
base = parts[parts.length - 2];
|
base = parts[parts.length - 2];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue