Explorar el Código

Fixing end of file marker regex

bodicsek hace 5 años
padre
commit
54b54b168d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      clv.ts

+ 1 - 1
clv.ts

@@ -32,7 +32,7 @@ for (const filename of options._ as string[]) {
           console.log("File found:", imageFilename);
           continue;
         }
-        const endOfFileMatches = parsedLine.log.match(/(.+)<<<</);
+        const endOfFileMatches = parsedLine.log.match(/(.*)<<<</);
         if (endOfFileMatches) {
           imageReading = false;
           const toFilename = `${path.dirname(filename)}/${path.basename(filename)}.${imageFilename}`;