Remove the eol character at the end of string (#7056)

This commit is contained in:
Amir Omidi
2019-09-04 15:30:46 -07:00
committed by Karl Burtram
parent 35b09542e2
commit a61c86bff5

View File

@@ -94,6 +94,7 @@ export async function getResultsString(provider: IGridDataProvider, selection: S
}
copyString = copyString.concat(row.join('\t').concat(eol));
});
copyString = copyString.slice(0, -1 * eol.length);
return copyString;
}
@@ -110,4 +111,4 @@ function removeNewLines(inputString: string): string {
let outputString: string = inputString.replace(/(\r\n|\n|\r)/gm, '');
return outputString;
}
}