From 17583ad4b9846dd8b8f1c332662a019584e657e3 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Tue, 18 Apr 2023 00:15:58 -0400 Subject: [PATCH] fix(striker-ui-api): add formatSql() --- striker-ui-api/src/lib/formatSql.ts | 1 + 1 file changed, 1 insertion(+) create mode 100644 striker-ui-api/src/lib/formatSql.ts diff --git a/striker-ui-api/src/lib/formatSql.ts b/striker-ui-api/src/lib/formatSql.ts new file mode 100644 index 00000000..b4a7acb4 --- /dev/null +++ b/striker-ui-api/src/lib/formatSql.ts @@ -0,0 +1 @@ +export const formatSql = (script: string) => script.replace(/\s+/g, ' ');