diff --git a/packages/scripts/src/commands/app-data/convert/index.ts b/packages/scripts/src/commands/app-data/convert/index.ts index 23e87d4bef..f08096ecd6 100644 --- a/packages/scripts/src/commands/app-data/convert/index.ts +++ b/packages/scripts/src/commands/app-data/convert/index.ts @@ -60,7 +60,7 @@ export default program */ export class AppDataConverter { /** Change version to invalidate all underlying caches */ - public version = 20231002.0; + public version = 20241104.0; public activeDeployment = ActiveDeployment.get(); diff --git a/packages/scripts/src/commands/app-data/convert/utils/app-data-string.utils.ts b/packages/scripts/src/commands/app-data/convert/utils/app-data-string.utils.ts index 4190d78f08..ed5c224104 100644 --- a/packages/scripts/src/commands/app-data/convert/utils/app-data-string.utils.ts +++ b/packages/scripts/src/commands/app-data/convert/utils/app-data-string.utils.ts @@ -97,6 +97,7 @@ export function extractDynamicDependencies(dynamicFields: FlowTypes.TemplateRow[ } // Standardise newline characters within a string (i.e. replace "\r\n" (CRLF) with "\n" (LF)) +// also replace any remaining \r with \n (https://github.com/IDEMSInternational/open-app-builder/issues/2499) export function standardiseNewlines(str: string) { - return str.replace(/\\r\\n/g, "\\n"); + return str.replace(/\\r\\n/g, "\\n").replace(/\\r/g, "\\n"); }