mirror of
https://github.com/cheveguerra/Colaborando.git
synced 2026-08-19 00:46:37 +00:00
Commit inicial
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
const fs = require('fs');
|
||||
let content = fs.readFileSync('colaborando.php', 'utf8');
|
||||
|
||||
[3, 4, 5, 6].forEach(num => {
|
||||
let oldStr = ` {
|
||||
name: 'accionEspecialQuincenal',
|
||||
value: "Generar ${num} activo sin costo"
|
||||
}
|
||||
];`;
|
||||
let newStr = ` {
|
||||
name: 'accionEspecialQuincenal',
|
||||
value: "Generar ${num} activo sin costo"
|
||||
},
|
||||
{
|
||||
name: 'accionEspecialLastUsed',
|
||||
value: 0
|
||||
},
|
||||
{
|
||||
name: 'accionEspecialPeriodicidad',
|
||||
value: 2
|
||||
}
|
||||
];`;
|
||||
content = content.replace(oldStr, newStr);
|
||||
});
|
||||
|
||||
fs.writeFileSync('colaborando.php', content);
|
||||
Reference in New Issue
Block a user