From ab9b8a0c872a6e24b2d21f05c3c5e08b452f0f7e Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Tue, 21 May 2019 15:24:46 -0400 Subject: [PATCH] Rename escapedata to escapeData --- packages/core/src/command.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/command.ts b/packages/core/src/command.ts index 41724d37..b277bfb2 100644 --- a/packages/core/src/command.ts +++ b/packages/core/src/command.ts @@ -68,13 +68,13 @@ class Command { // safely append the message - avoid blowing up when attempting to // call .replace() if message is not a string for some reason const message: string = `${this.message || ''}` - cmdStr += escapedata(message) + cmdStr += escapeData(message) return cmdStr } } -function escapedata(s: string): string { +function escapeData(s: string): string { return s.replace(/\r/g, '%0D').replace(/\n/g, '%0A') }