Parcourir la source

Fixing end of file marker regex

bodicsek il y a 5 ans
Parent
commit
54b54b168d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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}`;