add additional \r\n check in multilines (#134640)

This commit is contained in:
Tomasz Ciecierski 2022-07-12 14:47:22 +02:00 committed by GitHub
parent 51a3d4a542
commit f0bbc4044e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,4 +6,4 @@
*/
export const removeMultilines = (query: string): string =>
query.replaceAll('\n', ' ').replaceAll(/ +/g, ' ');
query.replaceAll('\r\n', ' ').replaceAll('\n', ' ').replaceAll(/ +/g, ' ');