We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
transform()
1 parent 98245a9 commit 3487f40Copy full SHA for 3487f40
src/lib/database.ts
@@ -107,11 +107,11 @@ const getSqlFileStreamFromCompressedFile = async ( filePath: string ): Promise<
107
};
108
109
export const fixMyDumperTransform = () => {
110
+ const regex = /^-- ([^ ]+) \d+$/;
111
return new Transform( {
112
transform( chunk: string, _encoding: BufferEncoding, callback: TransformCallback ) {
113
const chunkString = chunk.toString();
114
const lineEnding = chunkString.includes( '\r\n' ) ? '\r\n' : '\n';
- const regex = /^-- ([^ ]+) \d+$/;
115
const lines = chunk
116
.toString()
117
.split( lineEnding )
0 commit comments