Commit af137b31 authored by Rolf Forst's avatar Rolf Forst
Browse files

Update textToReplace

parent 749c071f
......@@ -59,6 +59,13 @@ const textDomain = directoryName.toLowerCase();
sanitize = directoryName.replace(/-/g, '_');
const optionName = sanitize.toLowerCase();
sanitize = directoryName.replace(/-/g, '/');
const composer = sanitize.toLowerCase();
sanitize = directoryName.replace(/-/g, '\\\\');
sanitize2 = sanitize.replace(/^([\w\-]+)/g, str => str.toUpperCase());
const autoload = sanitize2.replace(/([\w\-]+)$/g, str => str[0].toUpperCase() + str.slice(1));
// Liste der Dateien, die entfernt werden müssen.
const filesToRemove = [
'README.md',
......@@ -87,6 +94,14 @@ const textToReplace = [{
{
from: /cms_basis/g,
to: optionName
},
{
from: /cms\/rrze-plugin/g,
to: composer
},
{
from: /CMS\\\\Basis/g,
to: autoload
}
];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment