Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Use platform independent newline seperators (#2159)
Leendert de Borst12f60a45c645
diff --git a/core/models/scripts/generate-field-keys.cjs b/core/models/scripts/generate-field-keys.cjsindex 3cec0bfe4..1e025a156 100755--- a/core/models/scripts/generate-field-keys.cjs+++ b/core/models/scripts/generate-field-keys.cjs@@ -36,7 +36,7 @@ function parseTypeScriptFieldKeys(tsContent) {const fieldKeys = {};// Extract field comments- const lines = tsContent.split('\n');+ const lines = tsContent.split(/\r?\n/);let currentComment = '';for (let i = 0; i < lines.length; i++) {@@ -159,7 +159,7 @@ function parseItemTypeFieldConfig(tsContent) {const body = match[1];// Match properties with comments- const lines = body.split('\n');+ const lines = body.split(/\r?\n/);let currentComment = '';for (const line of lines) {@@ -201,7 +201,7 @@ function parseSystemFieldDefinition(tsContent) {}const body = match[1];- const lines = body.split('\n');+ const lines = body.split(/\r?\n/);let currentComment = '';for (const line of lines) {@@ -1049,7 +1049,7 @@ function parseItemTypeIconSvgs(tsContent) {// Match each icon: IconName: `<svg...>`,// Use a state machine to handle template literals with backticks- const lines = body.split('\n');+ const lines = body.split(/\r?\n/);let currentIconName = null;let currentSvg = '';let inTemplateLiteral = false;diff --git a/core/models/scripts/generate-password-defaults.cjs b/core/models/scripts/generate-password-defaults.cjsindex 7129f3245..1e208767e 100644--- a/core/models/scripts/generate-password-defaults.cjs+++ b/core/models/scripts/generate-password-defaults.cjs@@ -26,7 +26,7 @@ const CS_OUTPUT = path.join(REPO_ROOT, 'apps/server/Databases/AliasClientDb/Mode*/function parseConstants(source) {const constants = [];- const lines = source.split('\n');+ const lines = source.split(/\r?\n/);let pendingDoc = null;for (const line of lines) {