Skip to content

Commit

Permalink
Merge pull request #2506 from IDEMSInternational/fix/linebreaks
Browse files Browse the repository at this point in the history
chore: fix linebreaks
  • Loading branch information
chrismclarke authored Nov 5, 2024
2 parents 44492af + 0b385dd commit 44e92bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/scripts/src/commands/app-data/convert/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

0 comments on commit 44e92bd

Please sign in to comment.