Add Prettier and ESLint tooling (Refs #77)
This commit is contained in:
@@ -19,7 +19,12 @@ export function applyRuntimePassword(text: string, password?: string | null): st
|
||||
}
|
||||
if (!matched) {
|
||||
if (lines.at(-1) === '') lines.pop();
|
||||
lines.push('', '// Added by Plutainer from PLUTAINER_RCON_PASSWORD.', `set rcon_password ${replacement}`, '');
|
||||
lines.push(
|
||||
'',
|
||||
'// Added by Plutainer from PLUTAINER_RCON_PASSWORD.',
|
||||
`set rcon_password ${replacement}`,
|
||||
''
|
||||
);
|
||||
changed = true;
|
||||
}
|
||||
return changed ? lines.join('\n') : text;
|
||||
|
||||
Reference in New Issue
Block a user