]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/regexp.ts
Move to eslint
[github/Chocobozzz/PeerTube.git] / server / helpers / regexp.ts
index 2336654b0d3ee73421593ad9a9d5083e60df7c35..cfc2be4882523e7c5dbd20c56903801a059b0df6 100644 (file)
@@ -1,8 +1,8 @@
 // Thanks to https://regex101.com
 function regexpCapture (str: string, regex: RegExp, maxIterations = 100) {
+  const result: RegExpExecArray[] = []
   let m: RegExpExecArray
   let i = 0
-  let result: RegExpExecArray[] = []
 
   // tslint:disable:no-conditional-assignment
   while ((m = regex.exec(str)) !== null && i < maxIterations) {